Skip to content

Commit 90b80f0

Browse files
committed
Fix MSVC 2017 build error
1 parent e814b5f commit 90b80f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/fmt/base.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ 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 2017 to make void_t work in a SFINAE context.
331331
template <typename...> struct void_t_impl {
332332
using type = void;
333333
};

0 commit comments

Comments
 (0)