Skip to content
New issue

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

Problem mixing PICOJSON_USE_INT64 with non-PICOJSON_USE_INT64 #160

Open
radoslawkojdecki opened this issue Apr 25, 2024 · 0 comments
Open

Comments

@radoslawkojdecki
Copy link

In large C++ projects, one may encounter the mixing of picojson.h compiled with and without the PICOJSON_USE_INT64 flag. This can lead to very difficult-to-debug problems. I have created an example illustrating this issue here: https://github.com/radoslawkojdecki/picojson-bug-example. It should be noted that mixing such compilations should be impossible. Consider implementing a 'semaphore' to prevent compilation in such cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant