This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: Failing test when run as C++11


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


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