Created
June 24, 2019 19:06
-
-
Save thomaswatters/17154e86065d40b1139d357f1d092900 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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