Alternative implementation of NLOHMANN_DEFINE_TYPE_INTRUSIVE #2399
pfeatherstone
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
There is no upper bound on the number of member variables. But, though the string |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Instead of using the current macro expansion of
NLOHMANN_DEFINE_TYPE_INTRUSIVE, which imposes an upper bound on the number of member variables, why not use something like this:Note that a better
splitfunction could be used. @nlohmann sorry i didn't suggest this at the time when these macros were in development.Beta Was this translation helpful? Give feedback.
All reactions