From d0c1d286cbd162d4b0e9e2c62e35300bae9e8165 Mon Sep 17 00:00:00 2001 From: Michael Goulding Date: Sat, 8 Sep 2018 07:25:11 -0700 Subject: [PATCH] VS 15.8.0 Preview 4.0 has a bug with alias templates (#1462) * VS 15.8.0 Preview 4.0 has a bug with alias templates --- include/pybind11/detail/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index 17bb99176..88681d062 100644 --- a/include/pybind11/detail/common.h +++ b/include/pybind11/detail/common.h @@ -482,7 +482,7 @@ template struct void_t_impl { using type = void; }; template using void_t = typename void_t_impl::type; /// Compile-time all/any/none of that check the boolean value of all template types -#ifdef __cpp_fold_expressions +#if defined(__cpp_fold_expressions) && !(defined(_MSC_VER) && (_MSC_VER < 1916)) template using all_of = bool_constant<(Ts::value && ...)>; template using any_of = bool_constant<(Ts::value || ...)>; #elif !defined(_MSC_VER)