diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index bdc3a5dd..37471d8b 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;