Cleanup string traits

This commit is contained in:
Victor Zverovich
2024-01-05 19:31:04 -08:00
parent 1e938dda20
commit 0641b844ac
6 changed files with 36 additions and 54 deletions
+1 -1
View File
@@ -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);