We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use different pack, e.g. 1 for source1.cpp and other for source2.cpp, will crash the second json instance.
#pragma pack(push, 1) json j1;
#pragma pack(push,4) json j2;// crashed on contains(...) call.
crash
msvc2022
3.11.3
develop
The text was updated successfully, but these errors were encountered:
Please provide a complete code example.
Sorry, something went wrong.
As @nlohmann says, we would need to see a complete code example, but this seems like it's going to be a One Definition Rule violation.
No branches or pull requests
Description
use different pack, e.g. 1 for source1.cpp and other for source2.cpp, will crash the second json instance.
Reproduction steps
Expected vs. actual results
crash
Minimal code example
Error messages
Compiler and operating system
msvc2022
Library version
3.11.3
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: