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
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
-
I see there is the
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE
macro for definingto_json
andfrom_json
, but there's nothing for just declaring them, is there?For example if I want to do something like this:
CustomType.h
:CustomType.cpp
:I can use the macro to replace the code in
CustomType.cpp
, but I still need theto_json
andfrom_json
declarations inCustomType.h
.Beta Was this translation helpful? Give feedback.
All reactions