This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/52442] temporary_buffer does not swap
- 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: Wed, 29 Feb 2012 21:44:21 +0000
- Subject: [Bug libstdc++/52442] temporary_buffer does not swap
- Auto-submitted: auto-generated
- References: <bug-52442-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52442
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-29 21:44:21 UTC ---
You're right, it can't be used like that, but it's not meant to be.
By design temporary_buffer is not copyable, so it's not swappable either.