Re: [PATCH] Add [[nodiscard]] attribute to C++17 components

2017-11-23 Thread Jonathan Wakely
On 23/11/17 22:40 +, Jonathan Wakely wrote: C++17 added the [[nodiscard]] attribute, similar to GCC's warn_unused_result. The C++2a draft requires it to be used in several places. This patch adds it where required on components which are new to C++17, which are still experimental and so I'm c

Re: [PATCH] Add [[nodiscard]] attribute to C++17 components

2017-11-23 Thread Jonathan Wakely
On 23/11/17 22:40 +, Jonathan Wakely wrote: C++17 added the [[nodiscard]] attribute, similar to GCC's warn_unused_result. The C++2a draft requires it to be used in several places. This patch adds it where required on components which are new to C++17, which are still experimental and so I'm c

[PATCH] Add [[nodiscard]] attribute to C++17 components

2017-11-23 Thread Jonathan Wakely
C++17 added the [[nodiscard]] attribute, similar to GCC's warn_unused_result. The C++2a draft requires it to be used in several places. This patch adds it where required on components which are new to C++17, which are still experimental and so I'm changing them in stage 3. * include/bits/