You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to change the serialized variable name but still use the NLOHMANN_DEFINE_TYPE_... macros? I do realize I could write custom serialization code for the entire class, but I just have one member that uses a name that is a C++ keyword so I cannot use it as a variable name in my class.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to change the serialized variable name but still use the
NLOHMANN_DEFINE_TYPE_...
macros? I do realize I could write custom serialization code for the entire class, but I just have one member that uses a name that is a C++ keyword so I cannot use it as a variable name in my class.Beta Was this translation helpful? Give feedback.
All reactions