From 0ca6867e8e233b64de24d5a01ab854702a1dbf66 Mon Sep 17 00:00:00 2001 From: Boris Staletic Date: Thu, 3 Jan 2019 12:02:39 +0100 Subject: [PATCH] Avoid Visual Studio 2017 15.9.4 ICE --- include/pybind11/numpy.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index bdc3a5ddd..37471d8be 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -1466,7 +1466,10 @@ public: private: remove_reference_t f; - template using param_n_t = typename pack_element::call_type...>::type; + // Internal compiler error in MSVC 19.16.27025.1 (Visual Studio 2017 15.9.4), when compiling with "/permissive-" flag + // when arg_call_types is manually inlined. + using arg_call_types = std::tuple::call_type...>; + template using param_n_t = typename std::tuple_element::type; // Runs a vectorized function given arguments tuple and three index sequences: // - Index is the full set of 0 ... (N-1) argument indices;