-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Custom types : MACRO expansion bug #2267
Comments
Thanks for noting! Good catch! PRs for both issues (the quick fix and an extension to more arguments) are welcome! |
Yep will do. Probs this weekend as work won't permit. |
Cool! |
@nlohmann I noticed in the documentation you use https://github.com/edlund/amalgamate to create the single header. What is the exact command you use? Maybe the amalgamation should be done at 'build' time (somewhere as part of the CMake build if that's possible) and not commit the single header to git. |
The amalgamation is created with |
In the following code:
NLOHMANN_JSON_PASTE10
should useNLOHMANN_JSON_PASTE9
notNLOHMANN_JSON_PASTE8
.Similar issue with
NLOHMANN_JSON_PASTE11
Very quick fix.
On another note, unfortunately I think we should have unrolled the macro manually up to 32 or 64 arguments. i think 11 is too small (it is for me at least).
@nlohmann What do you think ?
The text was updated successfully, but these errors were encountered: