Fix handling of streamable and convertible to string types

This commit is contained in:
Victor Zverovich
2019-11-25 16:46:33 -08:00
parent d19ed6716d
commit 0d07db1234
3 changed files with 25 additions and 15 deletions

View File

@@ -905,6 +905,8 @@ template <typename Context> struct arg_mapper {
}
template <typename T,
FMT_ENABLE_IF(!is_string<T>::value && !is_char<T>::value &&
!std::is_constructible<basic_string_view<char_type>,
T>::value &&
(has_formatter<T, Context>::value ||
has_fallback_formatter<T, Context>::value))>
FMT_CONSTEXPR const T& map(const T& val) {