Re: [PATCH] PR libstdc++/79254 fix exception-safety in std::string::operator=

2017-02-01 Thread Jonathan Wakely
On 01/02/17 11:42 +, Jonathan Wakely wrote: On 27/01/17 16:16 +, Jonathan Wakely wrote: This implements the strong exception-safety guarantee that is required by [string.require] p2, which the new string can fail to meet when propagate_on_container_copy_assignment (POCCA) is true. The s

Re: [PATCH] PR libstdc++/79254 fix exception-safety in std::string::operator=

2017-02-01 Thread Jonathan Wakely
On 27/01/17 16:16 +, Jonathan Wakely wrote: This implements the strong exception-safety guarantee that is required by [string.require] p2, which the new string can fail to meet when propagate_on_container_copy_assignment (POCCA) is true. The solution is to define a helper that takes ownershi

[PATCH] PR libstdc++/79254 fix exception-safety in std::string::operator=

2017-01-27 Thread Jonathan Wakely
This implements the strong exception-safety guarantee that is required by [string.require] p2, which the new string can fail to meet when propagate_on_container_copy_assignment (POCCA) is true. The solution is to define a helper that takes ownership of the string's memory (and also the associated