safe_numerics
safe_numerics copied to clipboard
Define to_string for safe integers
Because it would be convenient if code like the following worked generically for both regular ints and safe ints:
template<typename I>
std::string f(I i)
{
using std::to_string;
return to_string(i);
}