Skip to content

Commit

Permalink
is_convertible_v -> is_convertible::value (#3983)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakra authored May 31, 2024
1 parent dc401b1 commit fcd3e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/compile.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ template <typename Char, typename T, int N> struct field {
template <typename OutputIt, typename... Args>
constexpr OutputIt format(OutputIt out, const Args&... args) const {
const T& arg = get_arg_checked<T, N>(args...);
if constexpr (std::is_convertible_v<T, basic_string_view<Char>>) {
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);
}
Expand Down

0 comments on commit fcd3e1e

Please sign in to comment.