Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thomaswatters/17154e86065d40b1139d357f1d092900 to your computer and use it in GitHub Desktop.
Save thomaswatters/17154e86065d40b1139d357f1d092900 to your computer and use it in GitHub Desktop.
std::string serialize(map)
{
std::stringstream output;
// for each key/value pair in map
// "{key,value}{key,value}"
output << "{" << serialize(pair.first) << "." << serialize(pair.second) << "}"
return output.str();
}
template<typename T>
std::string serialize(T)
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment