Skip to content

Commit

Permalink
Fix handling of types that are explicitly convertible to std::string_…
Browse files Browse the repository at this point in the history
…view
  • Loading branch information
denizevrenci committed Dec 4, 2019
1 parent 123e7f7 commit d88bc82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,8 @@ template <typename Context> struct arg_mapper {
}
template <typename T,
FMT_ENABLE_IF(!is_string<T>::value && !is_char<T>::value &&
!std::is_constructible<std_string_view<char_type>,
T>::value &&
!std::is_constructible<basic_string_view<char_type>,
T>::value &&
(has_formatter<T, Context>::value ||
Expand Down

0 comments on commit d88bc82

Please sign in to comment.