Workaround to MSVC bug (#2474) (#2476)

This commit is contained in:
Vladislav Shchapov 2021-08-31 19:54:42 +05:00 committed by GitHub
parent 1aaf72fb6d
commit ee63f5f04e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1371,10 +1371,10 @@ template <typename Context> struct arg_mapper {
}
template <typename T, typename U = remove_cvref_t<T>>
using formattable =
bool_constant<is_const_formattable<U, Context>() ||
!std::is_const<remove_reference_t<T>>::value ||
has_fallback_formatter<U, char_type>::value>;
struct formattable
: bool_constant<is_const_formattable<U, Context>() ||
!std::is_const<remove_reference_t<T>>::value ||
has_fallback_formatter<U, char_type>::value> {};
#if FMT_MSC_VER != 0 && FMT_MSC_VER < 1910
// Workaround a bug in MSVC.