Skip to content

Commit b8192d2

Browse files
authored
Fix build error with MSVC v141 (#4413)
1 parent e814b5f commit b8192d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/fmt/base.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,9 @@ using underlying_t = typename std::underlying_type<T>::type;
326326
template <typename T> using decay_t = typename std::decay<T>::type;
327327
using nullptr_t = decltype(nullptr);
328328

329-
#if FMT_GCC_VERSION && FMT_GCC_VERSION < 500
330-
// A workaround for gcc 4.9 to make void_t work in a SFINAE context.
329+
#if (FMT_GCC_VERSION && FMT_GCC_VERSION < 500) || FMT_MSC_VERSION
330+
// A workaround for gcc 4.9 and MSVC v141 to make void_t work in a SFINAE
331+
// context.
331332
template <typename...> struct void_t_impl {
332333
using type = void;
333334
};

0 commit comments

Comments
 (0)