diff --git a/src/string.hh b/src/string.hh index 6c0a467e..cae9b170 100644 --- a/src/string.hh +++ b/src/string.hh @@ -385,7 +385,7 @@ struct InplaceString }; struct Hex { size_t val; }; -inline Hex hex(size_t val) { return {val}; } +constexpr Hex hex(size_t val) { return {val}; } InplaceString<15> to_string(int val); InplaceString<23> to_string(long int val); @@ -407,7 +407,7 @@ namespace detail template using IsString = std::is_convertible; -template::value>::type> +template::value>::type> auto format_param(const T& val) -> decltype(to_string(val)) { return to_string(val); } template::value>::type>