insert else branch to avoid unreachable code warning (#4130)

at least MSC caused warning C4702: unreachable code
This commit is contained in:
torsten48 2024-08-29 01:43:12 +02:00 committed by GitHub
parent a3f3f2ec9a
commit bbf8b3bd01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -143,8 +143,9 @@ template <typename Char, typename T, int N> struct field {
if constexpr (std::is_convertible<T, basic_string_view<Char>>::value) {
auto s = basic_string_view<Char>(arg);
return copy<Char>(s.begin(), s.end(), out);
} else {
return write<Char>(out, arg);
}
return write<Char>(out, arg);
}
};