-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cannot convert from 'json' to 'char' #276
Comments
Thanks for reporting! I tried the code and got the following error message:
|
While fixing #144, the following comment has been added to the operator ValueType() function:
I don't think this issue can be fixed without breaking the #144. |
You can still use the |
Just for the record, this is linked to #958. |
For anyone who lands on this page trying to figure out how to print or use something like printf("name: %s\n", j1["name"].get_ref<const std::string&>().c_str()); The See:
For my full demo of this and more, see json_nlohmann_demo.cpp in my eRCaGuy_hello_world repo.@theodelrieu , thanks for your comment about the |
I'm not sure if this is an issue,
but it's not possible to assign a json object to a variable of type char.
With all other integral types it works, only the char type makes error.
Example:
The text was updated successfully, but these errors were encountered: