Comments (5)
This seems related to #4279.
from json.
As in the linked issue, you can't do that. The push_back function on vector can invalidate pointers, and ordered_json uses a vector.
from json.
It is related to the issue you mentioned earlier, but it's certainly NOT a documentation issue. ordered_json must have working push_back function without any pointer corruption or this function must be private if it can cause such behaviour. Please fix this
from json.
I have no idea how to fix it, so documentation is currently all we can do.
from json.
@mishase This behavior comes from std::vector<>::push_back()
, so not only is it not broken, it is standards conforming.
https://en.cppreference.com/w/cpp/container/vector/push_back
If after the operation the new size() is greater than old capacity() a reallocation takes place, in which case all iterators (including the end() iterator) and all references to the elements are invalidated. Otherwise only the end() iterator is invalidated.
from json.
Related Issues (20)
- json.exception.type_error.302 HOT 3
- Error 302: type must be number, but is it number HOT 2
- nlohmann::ordered_json: not compatible with NLOHMANN_DEFINE_TYPE_INTRUSIVE HOT 1
- when enum is used as key in a map the json format is not an expected format HOT 2
- JSON can't parse a simple data HOT 2
- JSON_BuildTests fail when JSON_DisableEnumSerialization is set to ON
- VS 2022 latest version on win 10 latest version don't compile any recent version of JSON... HOT 2
- Crashes when I try to use βjson::at()β on a properly structured, non null, and correctly constructed β.jsonβ file HOT 2
- Unable to parse JSON string from snake case to camel case HOT 1
- Failing to read complex Unicode string embedded in JSON HOT 3
- CVE-2024-39705
- CVE-2024-22190
- CVE-2024-3651
- CVE-2024-22195, CVE-2024-34064
- CVE-2024-35195
- Tornado vulnerabilities
- CVE-2024-37891
- CVE-2024-5569
- CVE-2024-39689
- CVE-2024-34062
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json.