diff --git a/include/fmt/core.h b/include/fmt/core.h index 8a2a05c2..1eae83e5 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -832,11 +832,12 @@ template struct arg_mapper { FMT_CONSTEXPR basic_string_view map(const T& val) { return basic_string_view(val); } - template , T>::value && - !std::is_constructible, T>::value && - !is_string::value)> + template < + typename T, + FMT_ENABLE_IF( + std::is_constructible, T>::value && + !std::is_constructible, T>::value && + !is_string::value)> FMT_CONSTEXPR basic_string_view map(const T& val) { return std_string_view(val); } @@ -1208,7 +1209,8 @@ template class basic_format_args { internal::type type(int index) const { int shift = index * internal::packed_arg_bitsize; - return static_cast((types_ >> shift) & internal::packed_arg_mask); + return static_cast((types_ >> shift) & + internal::packed_arg_mask); } friend class internal::arg_map;