You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider updating Allocator Access to add rvalue reference overloads #156
#include<boost/core/allocator_access.hpp>
#include<memory>
#include<type_traits>namespaceboost
{
template<classA>
allocator_pointer_t<std::decay_t<A>>
allocator_allocate(A&& a, allocator_size_type_t<std::decay_t<A>> n)
{
returnallocator_allocate(a,n);
}
}
autotester(std::allocator<int> a) {
// feed the rebound allocator directly using the converting constructor//returnboost::allocator_allocate(std::allocator<float>(a),16);
// want to avoid the need to declare `oa` to use the rebound allocator type//// std::allocator<float> oa(a);// return boost::allocator_allocate(oa,16);
}
Activity