NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE fails if the length of the argument is 10 #2280
Closed
2 of 5 tasks
Labels
kind: bug
kind: enhancement/improvement
solution: duplicate
the issue is a duplicate; refer to the linked issue instead
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
What is the issue you have?
A compilation error occurred while calling NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE and NLOHMANN_DEFINE_TYPE_INTRUSIVE with 9 or 10 members.
It' caused by wrong definition of NLOHMANN_JSON_PASTE10 and NLOHMAN_JSON_PASTE11 implemented by #2225
json/include/nlohmann/detail/macro_scope.hpp
Lines 141 to 142 in 0fe9f23
Please describe the steps to reproduce the issue.
struct
orclass
with 9 or 10 members.Can you provide a small but working code example?
What is the expected behavior?
Compilation fails.
And what is the actual behavior instead?
The compilation is successful.
Which compiler and operating system are you using?
Which version of the library did you use?
develop
branchIf you experience a compilation error: can you compile and run the unit tests?
The text was updated successfully, but these errors were encountered: