This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/52442] temporary_buffer does not swap


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]