mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Fix build error with MSVC v141 (#4413)
This commit is contained in:
@ -326,8 +326,9 @@ using underlying_t = typename std::underlying_type<T>::type;
|
|||||||
template <typename T> using decay_t = typename std::decay<T>::type;
|
template <typename T> using decay_t = typename std::decay<T>::type;
|
||||||
using nullptr_t = decltype(nullptr);
|
using nullptr_t = decltype(nullptr);
|
||||||
|
|
||||||
#if FMT_GCC_VERSION && FMT_GCC_VERSION < 500
|
#if (FMT_GCC_VERSION && FMT_GCC_VERSION < 500) || FMT_MSC_VERSION
|
||||||
// A workaround for gcc 4.9 to make void_t work in a SFINAE context.
|
// A workaround for gcc 4.9 and MSVC v141 to make void_t work in a SFINAE
|
||||||
|
// context.
|
||||||
template <typename...> struct void_t_impl {
|
template <typename...> struct void_t_impl {
|
||||||
using type = void;
|
using type = void;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user