Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
Prev Up HomeNext


Compiler-specific markup used to tell the compiler than the return value of a function should not be discarded without examining it.

Overridable: Define before inclusion.

Default: To [[nodiscard]] if on C++ 17 or higher, __attribute__((warn_unused_result)) if on clang, SAL _Must_inspect_result_ if on MSVC, otherwise nothing.

Header: <boost/outcome/config.hpp>

Last revised: December 12, 2018 at 22:01:42 UTC

Prev Up HomeNext