Generalize NLOHMANN_DEFINE_TYPE #2828
kunaltyagi
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now, NLOHMANN_DEFINE_TYPE macro allows only
json
akabasic_json<>
conversions. Would it make sense to:basic_json<T>
or perhapsJSON
with some constraintsordered_json
because it'd be faster to reserve + emplace_back into_json
and iterate using index + compare key + copy.I can create a PR if this makes sense.
Beta Was this translation helpful? Give feedback.
All reactions