Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

C++17 introduced the [[nodiscard]] attribute that triggers a compiler warning when the result of a function call is discarded. At a minimum, this attribute should be used for functions that are expensive to run and query functions that might be confused with their action counterparts. Compiler Explorer link: https://lnkd.in/gsNK2dBg #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

Simon, I really thank you to sharing these awesome notes 🙏🏼🌹

Great 👍 topic [[maybe_unsed]]

See more comments

To view or add a comment, sign in

Explore content categories