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
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,11 @@ Define this to `any_ANY_STD` to select `std::any` as `nonstd::any`. Define this
145
145
-D<b>any_CONFIG_NO_EXCEPTIONS</b>=0
146
146
Define this to 1 if you want to compile without exceptions. If not defined, the header tries and detect if exceptions have been disabled (e.g. via `-fno-exceptions`). Default is undefined.
147
147
148
+
#### Disable \[\[nodiscard\]\]
149
+
150
+
-D<b>any\_CONFIG\_NO\_NODISCARD</b>=0
151
+
Define this to 1 if you want to compile without \[\[nodiscard\]\]. Note that the default of marking `class bad_any_cast` and function `any_cast()` with \[\[nodiscard\]\] is not part of the C++17 standard. The rationale to use \[\[nodiscard\]\] is that unnoticed discarded error values may break the error handling flow.
152
+
148
153
## Reported to work with
149
154
150
155
The table below mentions the compiler versions *any lite* is reported to work with.
0 commit comments