📝 minor changes
This commit is contained in:
parent
13e6f6c5e5
commit
d356facdee
@ -74,7 +74,7 @@ Strong exception safety: if an exception occurs, the original value stays intact
|
|||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
!!! danger "Undefined behavior"
|
!!! danger "Undefined behavior and runtime assertions"
|
||||||
|
|
||||||
1. If the element with key `idx` does not exist, the behavior is undefined.
|
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
|
2. If the element with key `key` does not exist, the behavior is undefined and is **guarded by a
|
||||||
|
|||||||
@ -26,11 +26,11 @@ When the macro is not defined, the library will define it to its default value.
|
|||||||
|
|
||||||
## Notes
|
## 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
|
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
|
across different compilation units: `basic_json` objects with differently defined `JSON_DIAGNOSTICS` macros are
|
||||||
`JSON_DIAGNOSTICS` as this is a violation of the One Definition Rule and will cause undefined behaviour.
|
not compatible!
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user