-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Description
at this moment i'm working on a little project and i'm trying to serialize a vector
the current code is:
std::string JsonResponsePacketSerializer::serializeResponse(HighscoreResponse response)
{
json j;
j["status"] = response.status;
j["highscores"] = {};
for (auto iter = response.highscores.begin(); iter != response.highscores.end(); ++iter)
{
j["highscores"].push_back(*iter);
}
return j.dump();
}as you can see in the struct the "highscores" is a vector
but i'm gettting all kind of erros such as:
- could not find to_json() method in T's namespace
2)forcing MSVC stacktrace to show which T we're talking about.
thanks for your help 👍
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation