Skip to content

Instantly share code, notes, and snippets.

@petomalina
Created July 13, 2014 18:20
Show Gist options
  • Save petomalina/bc4d3e00083653319c01 to your computer and use it in GitHub Desktop.
Save petomalina/bc4d3e00083653319c01 to your computer and use it in GitHub Desktop.
Patch for the gcc missing to_string function
#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