docs: correct assertion conditions and remove stale diagnostic locations (#6131)
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
1 parent
0ac14610d6
commit
8c3335d41f
2 files changed
+11
-25
No files matched your search
@@ -47,11 +47,9 @@ Therefore, assertions can be switched off by defining `NDEBUG`.
|
||||
}
|
||||
```
|
||||
|
||||
Output:
|
||||
|
||||
```
|
||||
Assertion failed: (m_value.object->find(key) != m_value.object->end()), function operator[], file json.hpp, line 2144.
|
||||
```
|
||||
The assertion `#!cpp it != m_data.m_value.object->end()` fails in `#!cpp operator[]`.
|
||||
The exact diagnostic format, source filename, and line number depend on the platform,
|
||||
library version, and whether the single-header or multi-header version is used.
|
||||
|
||||
??? example "Example: user-defined behavior"
|
||||
|
||||
|
||||
Reference in new issue
Block a user