diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index e138ff55..d06de6a2 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -413,10 +413,13 @@ struct formatter< enable_if_t< conjunction, detail::is_not_recursive_range, +// Workaround a bug in MSVC 2015 and earlier. +#if !FMT_MSC_VERSION || FMT_MSC_VERSION > 1900 disjunction< detail::is_formattable_delayed, detail::has_fallback_formatter_delayed > +#endif >::value >> {