Closed zhmt closed 2 years ago
You're right, I guess we haven't had a user with 47+ parameters before, nor a test case with that many parameters. Thanks for reporting this. Would you consider submitting a pull request with this change? (makes it easier to credit the contribution)
I have submmited a pull request. Happy to contribute.
We should keep this open, until we have a release with the fix.
Your PR is merged with master. It also looks like you've reached the limit of the number of parameters supported (50) so I've increased that limit to 70. I've also added a test case that covers the case of 70 parameters.
Nice work!! I have extended the limit to 54 myself. I should download the newest code from master now. Thank you!
I have tested . Everything works well.
Fixed in 0.168.4
Describe the bug my code
llvm refused to compile, it produced an error: too many arguments for function-like macro invocation
msvs give a warning: warning C4002: too many arguments for function-like macro invocation : JSONCONS_EXPAND_CALL5.
I checked the definition of JSONCONS_EXPAND_CALL5 (in json_traits_macros.hpp ), and I got one line seems like an error: JSONCONS_EXPAND_CALL5(Call, P1, P2, P3, P4, 47, )
I changed it to (delete the last ","): JSONCONS_EXPAND_CALL5(Call, P1, P2, P3, P4, 47)
everything seems ok. Both msvc and llvm compiled silently and sucssesfully.