Fix build error with MSVC v141 (#4413)

This commit is contained in:
hirohira
2025-04-16 00:21:38 +09:00
committed by GitHub
parent e814b5fabf
commit b8192d233a

View File

@ -326,8 +326,9 @@ using underlying_t = typename std::underlying_type<T>::type;
template <typename T> using decay_t = typename std::decay<T>::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 <typename...> struct void_t_impl {
using type = void;
};