diff --git a/include/fmt/base.h b/include/fmt/base.h index e7a2d9d8..b99b9ff8 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -326,8 +326,9 @@ using underlying_t = typename std::underlying_type::type; template using decay_t = typename std::decay::type; using nullptr_t = decltype(nullptr); -#if FMT_GCC_VERSION && FMT_GCC_VERSION < 500 -// A workaround for gcc 4.9 to make void_t work in a SFINAE context. +#if (FMT_GCC_VERSION && FMT_GCC_VERSION < 500) || FMT_MSC_VERSION +// A workaround for gcc 4.9 and MSVC v141 to make void_t work in a SFINAE +// context. template struct void_t_impl { using type = void; };