Re: Implement C++20 feature P0600r1: nodiscard in the library

2019-01-21 Thread Jonathan Wakely
On 20/01/19 17:09 +0100, Ulrich Drepper wrote: Since a previous patch introduced the _GLIBCXX_NODISCARD macro it is now simple to implement the rest of P0600. The parts specific to C++20 were already added, this patch adds the attribute to the other functions. Even though the feature specifies

Implement C++20 feature P0600r1: nodiscard in the library

2019-01-20 Thread Ulrich Drepper
Since a previous patch introduced the _GLIBCXX_NODISCARD macro it is now simple to implement the rest of P0600. The parts specific to C++20 were already added, this patch adds the attribute to the other functions. Even though the feature specifies the nodiscard attribute only for C++20 it makes n