Re: [committed] libstdc++: Make self-move well-defined for containers [PR 85828]

2020-08-25 Thread Jonathan Wakely via Gcc-patches
On 12/08/20 20:37 +0100, Jonathan Wakely wrote: The C++ LWG recently confirmed that self-move assignment should not have undefined behaviour for standard containers (see the proposed resolution of LWG 2839). The result should be a valid but unspecified value, just like other times when a containe

Re: [committed] libstdc++: Make self-move well-defined for containers [PR 85828]

2020-08-12 Thread Jonathan Wakely via Gcc-patches
On 12/08/20 20:37 +0100, Jonathan Wakely wrote: The C++ LWG recently confirmed that self-move assignment should not have undefined behaviour for standard containers (see the proposed resolution of LWG 2839). The result should be a valid but unspecified value, just like other times when a containe

[committed] libstdc++: Make self-move well-defined for containers [PR 85828]

2020-08-12 Thread Jonathan Wakely via Gcc-patches
The C++ LWG recently confirmed that self-move assignment should not have undefined behaviour for standard containers (see the proposed resolution of LWG 2839). The result should be a valid but unspecified value, just like other times when a container is moved from. Our std::list, std::__cxx11::bas