Failing test when run as C++11

Jonathan Wakely jwakely.gcc@gmail.com
Sun May 11 21:22:00 GMT 2014


On 11 May 2014 22:16, Daniel Krügler wrote:
> 2014-05-11 23:12 GMT+02:00 Jonathan Wakely <jwakely.gcc@gmail.com>:
>> On 11 May 2014 21:28, Daniel Krügler wrote:
>>> 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".
>>
>> I don't think I follow. In N3936 resize(size_type) says:
>> Remarks: If an exception is thrown other than by the move constructor
>> of a non-CopyInsertable T
>> there are no effects.
>
> Oops, you are right - somehow I must have looked at the wrong resize() function!

It keeps changing in (almost) every WP which doesn't help.



More information about the Libstdc++ mailing list