This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/52745] GCC4.7 vector uses copy instead of move constructor
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 27 Mar 2012 23:30:23 +0000
- Subject: [Bug libstdc++/52745] GCC4.7 vector uses copy instead of move constructor
- Auto-submitted: auto-generated
- References: <bug-52745-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52745
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-03-27 23:30:23 UTC ---
That's known, it's a design choice: in that case you are essentially back to
the unsafe 4.6 behavior. Look for 'move_if_noexcept'.