mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 11:14:41 +00:00
insert else branch to avoid unreachable code warning (#4130)
at least MSC caused warning C4702: unreachable code
This commit is contained in:
parent
a3f3f2ec9a
commit
bbf8b3bd01
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user