41 template<class T, class = typename std::enable_if<std::is_integral<T>::value>
::type>
44 std::stringstream stream;
46 if (base == 8) stream <<
"0";
47 if (base == 16) stream <<
"0x";
48 stream << std::setbase(base) << std::uppercase << val;
constexpr const auto string
std::string to_string(const T val, const int base)