Re: [committed] libstdc++: Move attributes that follow requires-clauses [PR101782]

2021-08-06 Thread Jonathan Wakely via Gcc-patches
On 05/08/21 19:02 +0100, Jonathan Wakely wrote: On 05/08/21 15:40 +0100, Jonathan Wakely wrote: On 05/08/21 15:19 +0100, Jonathan Wakely wrote: On 04/08/21 12:55 +0100, Jonathan Wakely wrote: This adds [[nodiscard]] throughout , as proposed by P2377R0 (with some minor corrections). The attrib

Re: [committed] libstdc++: Move attributes that follow requires-clauses [PR101782]

2021-08-05 Thread Jonathan Wakely via Gcc-patches
On 05/08/21 15:40 +0100, Jonathan Wakely wrote: On 05/08/21 15:19 +0100, Jonathan Wakely wrote: On 04/08/21 12:55 +0100, Jonathan Wakely wrote: This adds [[nodiscard]] throughout , as proposed by P2377R0 (with some minor corrections). The attribute is added for all modes from C++11 up, using [

Re: [committed] libstdc++: Move attributes that follow requires-clauses [PR101782]

2021-08-05 Thread Jonathan Wakely via Gcc-patches
On 05/08/21 15:19 +0100, Jonathan Wakely wrote: On 04/08/21 12:55 +0100, Jonathan Wakely wrote: This adds [[nodiscard]] throughout , as proposed by P2377R0 (with some minor corrections). The attribute is added for all modes from C++11 up, using [[__nodiscard__]] or _GLIBCXX_NODISCARD where C++1

Re: [committed] libstdc++: Move attributes that follow requires-clauses [PR101782]

2021-08-05 Thread Ville Voutilainen via Gcc-patches
On Thu, 5 Aug 2021 at 17:21, Jonathan Wakely via Libstdc++ wrote: > > On 04/08/21 12:55 +0100, Jonathan Wakely wrote: > >This adds [[nodiscard]] throughout , as proposed by P2377R0 > >(with some minor corrections). > > > >The attribute is added for all modes from C++11 up, using > >[[__nodiscard__

[committed] libstdc++: Move attributes that follow requires-clauses [PR101782]

2021-08-05 Thread Jonathan Wakely via Gcc-patches
On 04/08/21 12:55 +0100, Jonathan Wakely wrote: This adds [[nodiscard]] throughout , as proposed by P2377R0 (with some minor corrections). The attribute is added for all modes from C++11 up, using [[__nodiscard__]] or _GLIBCXX_NODISCARD where C++17 [[nodiscard]] can't be used directly. This ch