diff --git a/include/duckhandy/int_conv.hpp b/include/duckhandy/int_conv.hpp index 8e08f4f..c7970c2 100644 --- a/include/duckhandy/int_conv.hpp +++ b/include/duckhandy/int_conv.hpp @@ -295,6 +295,11 @@ namespace dhandy { std::basic_string_view to_string_view (const ReversedSizedArray& ary) { return std::basic_string_view(ary.data(), ary.size() - 1); } + + template + std::basic_string_view to_string_view (I num) { + return std::basic_string_view(int_to_ary(num)); + } #endif } //namespace dhandy