diff --git a/include/duckhandy/int_conv.hpp b/include/duckhandy/int_conv.hpp index 82125df..61b085d 100644 --- a/include/duckhandy/int_conv.hpp +++ b/include/duckhandy/int_conv.hpp @@ -140,7 +140,7 @@ namespace dhandy { } //namespace implem template - struct DefaultTranslator { + struct ASCIITranslator { static constexpr C to_digit (unsigned int num) { return (num <= 9 ? static_cast(num + '0') : @@ -149,8 +149,10 @@ namespace dhandy { } static constexpr C minus() { return '-'; } }; + template + using ASCIITranslatorUpcase = ASCIITranslator; - template > + template > constexpr inline auto int_to_ary (I in) { return implem::IntConversion, Base, Tr>::to_ary(in); }