C++17 attributes - maybe_unused, fallthrough and nodiscard—Simon Brand

Save to:
Instapaper Pocket Readability

Do you know these new attributes?

C++17 attributes - maybe_unused, fallthrough and nodiscard

by Simon Brand

From the article:

C++17 adds three new attributes for programmers to better express their intent to the compiler and readers of the code: maybe_unused, fallthrough, and nodiscard. This is a quick post to outline what they do and why they are useful.

Add a Comment

You must sign in or register to add a comment.

Comments (1)

0 0

Francisco Almeida said on Aug 1, 2017 04:55 AM:

Link is broken, please use https://blog.tartanllama.xyz/c++17-attributes.html