Created
July 13, 2014 18:20
-
-
Save petomalina/bc4d3e00083653319c01 to your computer and use it in GitHub Desktop.
Patch for the gcc missing to_string function
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
#include<sstream> | |
namespace std { | |
#ifndef to_string // gcc patch to_string | |
template <typename T> | |
string to_string(T value) | |
{ | |
std::ostringstream os ; | |
os << value ; | |
return os.str() ; | |
} | |
#endif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment