Created on 2011-11-08.00:00:00 last changed 130 months ago
Proposed resolution:
This wording is relative to the FDIS.
Change [default.allocator], the class template allocator synopsis as indicated:
namespace std { template <class T> class allocator; // specialize for void: template <> class allocator<void> { public: typedef void* pointer; typedef const void* const_pointer; // reference-to-void members are impossible. typedef void value_type; template <class U> struct rebind { typedef allocator<U> other; }; }; template <class T> class allocator { public: typedef size_t size_type; typedef ptrdiff_t difference_type; typedef T* pointer; typedef const T* const_pointer; typedef T& reference; typedef const T& const_reference; typedef T value_type; template <class U> struct rebind { typedef allocator<U> other; }; typedef true_type propagate_on_container_move_assignment; […] }; }
[ 2012, Portland: applied to WP ]
[ 2012, Kona ]
Move to Ready.
[ 2011-12-02: Pablo comments ]
This issue has potentially some overlap with 2108. Should the trait always_compare_equal been added, this issue's resolution should be improved based on that.
"std::allocator_traits<std::allocator<T>>::propagate_on_container_move_assignment::value" is specified as "false", according to ([default.allocator]) and ([allocator.traits.types]). However, according to ([container.requirements.general]), this specification leads to the unneeded requirements (MoveInsertable and MoveAssignable of the value type) on the move assignment operator of containers with the default allocator.
Proposed resolution: Either of the following two changes;Pablo prefers the first resolution.
History | |||
---|---|---|---|
Date | User | Action | Args |
2014-02-20 13:20:35 | admin | set | status: wp -> c++14 |
2012-11-03 04:16:46 | admin | set | messages: + msg6270 |
2012-10-25 12:46:45 | admin | set | status: voting -> wp |
2012-10-16 15:35:12 | admin | set | status: ready -> voting |
2012-02-27 16:24:02 | admin | set | messages: + msg6027 |
2012-02-12 18:36:43 | admin | set | status: new -> ready |
2011-12-04 13:05:22 | admin | set | messages: + msg5951 |
2011-11-30 22:22:52 | admin | set | messages: + msg5937 |
2011-11-08 00:00:00 | admin | create |