std::string<ThrowOnCopy> behavior

Ivan Baravy i.baravy@samsung.com
Fri Apr 14 13:07:00 GMT 2017


Hello,

I attached an example where I expect an exception on the line 77, but
nothing happens. GDB reports that memmove is used and thus the
ThrowOnCopy objects are moved inside of a std::string and no exceptions
are thrown.

Is this behavior intentional?

Regards,
Ivan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.cpp
Type: text/x-c++src
Size: 1328 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20170414/e21e48f3/attachment.bin>


More information about the Libstdc++ mailing list