safe_numerics icon indicating copy to clipboard operation
safe_numerics copied to clipboard

Define to_string for safe integers

Open Eelis opened this issue 4 years ago • 0 comments

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);
}

Eelis avatar Nov 29 '21 12:11 Eelis