We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I got this error when I built my application.
/json.hpp:843:9: error: static_assert failed "could not find to_json() method in T's namespace" static_assert(sizeof(BasicJsonType) == 0
The text was updated successfully, but these errors were encountered:
This error occurs if you try to assign an unsupported type to json, e.g.
json
MyClass foo; json j = foo;
The second line tries to find a way to convert MyClass to json and does this by searching for a to_json function in the namespace of the class (see https://github.com/nlohmann/json#arbitrary-types-conversions for more information).
MyClass
to_json
Without more context of your program, I'm afraid I cannot help more.
Sorry, something went wrong.
@SpilledMango Any news on this?
No, it's fine.
No branches or pull requests
I got this error when I built my application.
The text was updated successfully, but these errors were encountered: