mirror of
https://github.com/boostorg/unordered.git
synced 2026-04-29 02:03:23 +02:00
Better allocator rebind support
This commit is contained in:
@@ -201,9 +201,9 @@ namespace test
|
||||
public move_allocator_base<Flags>,
|
||||
Flags
|
||||
{
|
||||
template <typename U> struct rebind {
|
||||
typedef cxx11_allocator<U, Flags> other;
|
||||
};
|
||||
//template <typename U> struct rebind {
|
||||
// typedef cxx11_allocator<U, Flags> other;
|
||||
//};
|
||||
|
||||
explicit cxx11_allocator(int t = 0)
|
||||
: cxx11_allocator_base<T>(t)
|
||||
|
||||
@@ -447,7 +447,7 @@ namespace minimal
|
||||
{
|
||||
public:
|
||||
typedef T value_type;
|
||||
template <class U> struct rebind { typedef cxx11_allocator<U> other; };
|
||||
//template <class U> struct rebind { typedef cxx11_allocator<U> other; };
|
||||
|
||||
cxx11_allocator() {}
|
||||
template <class Y> cxx11_allocator(cxx11_allocator<Y> const&) {}
|
||||
|
||||
Reference in New Issue
Block a user