From 5a93159012d698554b9ef63e1e98885b4bddf112 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 26 May 2017 08:19:35 +0100 Subject: [PATCH] Small code style tweak --- src/string.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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>