mirror of
https://github.com/nlohmann/json.git
synced 2026-07-12 21:45:10 +00:00
Fix return value of get_ptr for unsigned integers (#4525)
* 🚷 fix return value of get_ptr for unsigned integers * 📡 update documentation
This commit is contained in:
@@ -40,7 +40,7 @@ Constant.
|
||||
|
||||
!!! danger "Undefined behavior"
|
||||
|
||||
Writing data to the referee of the result yields an undefined state.
|
||||
The reference becomes invalid if the underlying JSON object changes.
|
||||
|
||||
## Examples
|
||||
|
||||
@@ -58,6 +58,10 @@ Constant.
|
||||
--8<-- "examples/get_ref.output"
|
||||
```
|
||||
|
||||
## See also
|
||||
|
||||
- [get_ptr()](get_ptr.md) get a pointer value
|
||||
|
||||
## Version history
|
||||
|
||||
- Added in version 1.1.0.
|
||||
|
||||
Reference in New Issue
Block a user