-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
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
nlohmann::adl_serializer<T,void>::to_json no matching overloaded function found #1641
Comments
Section Arbitrary types conversions might be helpful. Have you tried marking As a sidenote, thanks for posting the code as clean and readable. You can also use builtin Markdown support for posting styled code in Github as described here (Examples section under the Codes tab). The plus would be that the code will be copy-able and searchable. |
Thank you very much, that was my problem. |
I want to serialize a vector of a type I created. (ex: std::vector< RoomData >)
So I used the to_json function on the class RoomData:
And serialize it like that: (res.rooms is std::vector< RoomData >)
*Both are found on the same file (the to_json file at the top)
but I'm getting those errors:
I'm using the latest version.
Any idea where is this coming from?
The text was updated successfully, but these errors were encountered: