You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Disable \[\[nodiscard\]\]
-D<b>xxx\_CONFIG\_NO\_NODISCARD</b>=0
Define this to 1 if you want to compile without \[\[nodiscard\]\]. Note that the default of marking `class xxx` with \[\[nodiscard\]\] is not part of the C++23 standard. The rationale to use \[\[nodiscard\]\] is that unnoticed discarded expected error values may break the error handling flow.
Code:
// Control marking class XXX with [[nodiscard]]]:
#if !defined(xxx_CONFIG_NO_NODISCARD)
# definexxx_CONFIG_NO_NODISCARD0
#else
# definexxx_CONFIG_NO_NODISCARD1
#endif
// Presence of C++17 language features:
...
#definexxx_HAVE_NODISCARD xxx_CPP17_000
See microsoft/STL@7643c27 via PR martinmoene/expected-lite#74.
Plan:
bad_any_cast
bad_expected_access
bad_optional_access
bad_variant_access
Readme, section Synopsis, Configuration:
Code:
The text was updated successfully, but these errors were encountered: