This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/52591] [C++0x] [4.7 Regression] moving std::vector relies on movable elements
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Mar 2012 00:58:15 +0000
- Subject: [Bug libstdc++/52591] [C++0x] [4.7 Regression] moving std::vector relies on movable elements
- Auto-submitted: auto-generated
- References: <bug-52591-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52591
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-15 00:58:15 UTC ---
std::vector did not conform to the C++11 allocator-aware container requirements
in 4.6, now it does, so you can't use a non-MoveAssignable type as the element
type.
It would be possible to dispatch to a different function for the cases when
propagate_on_container_move_assignment is true or the allocators are known to
always compare equal (which I suspect libc++ does) and I'll consider doing that
as a conforming extension, but I think the testcase is invalid.