Replies: 2 comments
-
You have to define the conversion functions explicitly, see https://json.nlohmann.me/features/arbitrary_types/#how-do-i-convert-third-party-types - there is an example for boost::optional that you can adapt. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for the fast response. I will try. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Currently
std::optional
is not supported withNLOHMANN_DEFINE_TYPE_INTRUSIVE
Is there any roadmap to make it work without implementing custom
to_json
/from_json
methods?The next code produce compile error now:
Beta Was this translation helpful? Give feedback.
All reactions