forked from fmtlib/fmt
Cleanup string traits
This commit is contained in:
+1
-1
@@ -293,7 +293,7 @@ template <typename T, typename C> class is_variant_formattable_ {
|
||||
|
||||
template <typename Char, typename OutputIt, typename T>
|
||||
auto write_variant_alternative(OutputIt out, const T& v) -> OutputIt {
|
||||
if constexpr (is_string<T>::value)
|
||||
if constexpr (has_to_string_view<T>::value)
|
||||
return write_escaped_string<Char>(out, detail::to_string_view(v));
|
||||
else if constexpr (std::is_same_v<T, Char>)
|
||||
return write_escaped_char(out, v);
|
||||
|
||||
Reference in New Issue
Block a user