📝 minor changes

This commit is contained in:
Niels Lohmann 2022-04-25 19:32:41 +02:00
parent 13e6f6c5e5
commit d356facdee
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ Strong exception safety: if an exception occurs, the original value stays intact
## Notes
!!! danger "Undefined behavior"
!!! danger "Undefined behavior and runtime assertions"
1. If the element with key `idx` does not exist, the behavior is undefined.
2. If the element with key `key` does not exist, the behavior is undefined and is **guarded by a

View File

@ -26,11 +26,11 @@ When the macro is not defined, the library will define it to its default value.
## Notes
!!! danger "ODR violation"
!!! danger "ABI incompatibility"
As this macro changes the definition of the `basic_json` object, it MUST be defined in the same way globally, even
across different compilation units; DO NOT link together code compiled with different definitions of
`JSON_DIAGNOSTICS` as this is a violation of the One Definition Rule and will cause undefined behaviour.
across different compilation units: `basic_json` objects with differently defined `JSON_DIAGNOSTICS` macros are
not compatible!
## Examples