Failing test when run as C++11
Daniel Krügler
daniel.kruegler@gmail.com
Sun May 11 20:28:00 GMT 2014
2014-05-11 20:56 GMT+02:00 Jonathan Wakely <jwakely@redhat.com>:
> On further reflection, I think the standard does specify this. C is
> CopyInsertable into std::vector<C>, therefore we must offer the strong
> exception-safety guarantee, so must call the copy constructor.
Note that we have resize() here and there seem to be no such
requirement (compared to push_back for example). This seems to be
consistent with the
"strong-exception-guarantee-only-for-single-element-inserts".
- Daniel
More information about the Libstdc++
mailing list