Add non-member type_name function #3960
SamVanheer
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
You could implement this with a switch over the enum |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is currently no way to get the JSON type name for a
value_t
directly. You have to construct a json value to get it:json(json::value_t::object).type_name()
It would be useful to have a function to get this directly.
Beta Was this translation helpful? Give feedback.
All reactions