Skip to content

Commit

Permalink
Workaround to MSVC bug (#2474) (#2476)
Browse files Browse the repository at this point in the history
  • Loading branch information
phprus authored Aug 31, 2021
1 parent 1aaf72f commit ee63f5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ee63f5f

Please sign in to comment.