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

Jonathan Wakely jwakely@redhat.com
Fri Nov 24 00:01:00 GMT 2017


On 23/11/17 22:40 +0000, 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 changing them in
>stage 3.

I missed one of the C++17 pieces that should have [[nodiscard]].

Tested powerpc64le-linux, committed to trunk.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2282 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20171124/e65aa069/attachment.bin>


More information about the Libstdc++ mailing list