Re: [PATCH] PR libstdc++/83306 make filesystem_error no-throw copyable

2018-11-28 Thread Jonathan Wakely
On 28/11/18 16:52 +, Jonathan Wakely wrote: On 28/11/18 15:27 +, Jonathan Wakely wrote: The class API provides no way to modify the members, so we can share them between copies of the same object. Copying becomes a simple reference count update, which doesn't throw. Also adjust the what

Re: [PATCH] PR libstdc++/83306 make filesystem_error no-throw copyable

2018-11-28 Thread Jonathan Wakely
On 28/11/18 15:27 +, Jonathan Wakely wrote: The class API provides no way to modify the members, so we can share them between copies of the same object. Copying becomes a simple reference count update, which doesn't throw. Also adjust the what() string to allow distinguishing between an empt

[PATCH] PR libstdc++/83306 make filesystem_error no-throw copyable

2018-11-28 Thread Jonathan Wakely
The class API provides no way to modify the members, so we can share them between copies of the same object. Copying becomes a simple reference count update, which doesn't throw. Also adjust the what() string to allow distinguishing between an empty path passed to the constructor, and no path.