From b8192d233a4015144ba42be201ba15d9af8dfbdb Mon Sep 17 00:00:00 2001 From: hirohira Date: Wed, 16 Apr 2025 00:21:38 +0900 Subject: [PATCH] Fix build error with MSVC v141 (#4413) --- include/fmt/base.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; };