Better allocator rebind support

This commit is contained in:
Daniel James
2016-10-14 09:27:40 +01:00
parent 04607dc9f3
commit da6e8e8041
3 changed files with 72 additions and 7 deletions
+3 -3
View File
@@ -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)
+1 -1
View File
@@ -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&) {}