summaryrefslogtreecommitdiff
path: root/src/string_utils.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_utils.hh')
-rw-r--r--src/string_utils.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_utils.hh b/src/string_utils.hh
index 3cd7c825..3034dfd5 100644
--- a/src/string_utils.hh
+++ b/src/string_utils.hh
@@ -144,10 +144,10 @@ decltype(auto) to_string(const StronglyTypedNumber<RealType, ValueType>& val)
namespace detail
{
-template<typename T> requires std::is_convertible_v<T, StringView>
+template<typename T> requires std::is_convertible_v<T, StringView>
StringView format_param(const T& val) { return val; }
-template<typename T> requires (not std::is_convertible_v<T, StringView>)
+template<typename T> requires (not std::is_convertible_v<T, StringView>)
decltype(auto) format_param(const T& val) { return to_string(val); }
}