diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index af0f5ae2c..50eb682d0 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -337,9 +337,8 @@ public: array() : array(0, static_cast(nullptr)) {} - template - array(const pybind11::dtype &dt, const Shape &shape, - const Strides &strides, const void *ptr = nullptr, + array(const pybind11::dtype &dt, const std::vector &shape, + const std::vector &strides, const void *ptr = nullptr, handle base = handle()) { auto& api = detail::npy_api::get(); auto ndim = shape.size(); @@ -537,7 +536,7 @@ protected: throw std::runtime_error("array is not writeable"); } - template static std::vector default_strides(const Shape& shape, size_t itemsize) { + static std::vector default_strides(const std::vector& shape, size_t itemsize) { auto ndim = shape.size(); std::vector strides(ndim); if (ndim) {