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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ Behavior can be customized with the following macros:
74
74
75
75
*`TYPE_SAFE_ENABLE_ASSERTIONS` (default is `1`): whether or not assertions are enabled in this library
76
76
*`TYPE_SAFE_ENABLE_WRAPPER` (default is `1`): whether or not the typedefs in `type_safe/types.hpp` use the wrapper classes
77
-
*`TYPE_SAFE_ARITHMETIC_UB` (defaultis `1`): whether under/overflow in the better integer types is UB.
77
+
*`TYPE_SAFE_ARITHMETIC_POLICY` (`ub`/`checked`/`default`, default is `ub`): whether under/overflow in the better integer types is UB, an exception, or the default behavior
78
78
79
79
If you're using CMake there is the target `type_safe` available after you've called `add_subdirectory(path/to/type_safe)`.
80
80
Simply link this target to your target and it will setup everything automagically.
0 commit comments