Replies: 1 comment
-
There's been some work done on this in #2843 |
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
-
I am using extensively
nlohmann::ordered_json
type, and would like to benefit from the NLOHMANN_DEFINE_TYPE_* macros as well, but they seem to be hardcoded tonlohmann::json
type. Looking at the definition:json/include/nlohmann/detail/macro_scope.hpp
Line 393 in 5d27543
I guess I would try to redefine them as template function, following an example of
NLOHMANN_JSON_SERIALIZE_ENUM
as:but for some reason it does not work.
Is there a way to easily fix it? Or should I simply try to define new macros with just the
json
type changed?Beta Was this translation helpful? Give feedback.
All reactions