@@ -496,26 +496,13 @@ class array : public buffer {
496496 m_ptr = tmp.release ().ptr ();
497497 }
498498
499- template <typename ShapeIt, typename StridesIt,
500- typename = detail::enable_if_t <detail::is_input_iterator<ShapeIt>::value && detail::is_input_iterator<StridesIt>::value>>
501- array (const pybind11::dtype &dt, ShapeIt shape_first, ShapeIt shape_last, StridesIt strides_first, StridesIt strides_last,
502- const void *ptr = nullptr , handle base = handle())
503- : array(dt, {shape_first, shape_last}, {strides_first, strides_last}, ptr, base) { }
504-
505499 array (const pybind11::dtype &dt, ShapeContainer shape, const void *ptr = nullptr , handle base = handle())
506500 : array(dt, std::move(shape), {}, ptr, base) { }
507501
508502 array (const pybind11::dtype &dt, size_t count, const void *ptr = nullptr ,
509503 handle base = handle())
510504 : array(dt, ShapeContainer{{ count }}, ptr, base) { }
511505
512- template <typename T, typename ShapeIt, typename StridesIt,
513- typename = detail::enable_if_t <detail::is_input_iterator<ShapeIt>::value && detail::is_input_iterator<StridesIt>::value>>
514- array (ShapeIt shape_first, ShapeIt shape_last, StridesIt strides_first, StridesIt strides_last,
515- const T *ptr = nullptr , handle base = handle())
516- : array(pybind11::dtype::of<T>(), ShapeContainer(std::move(shape_first), std::move(shape_last)),
517- StrideContainer (std::move(strides_first), std::move(strides_last)), ptr, base) { }
518-
519506 template <typename T>
520507 array (ShapeContainer shape, StridesContainer strides, const T *ptr, handle base = handle())
521508 : array(pybind11::dtype::of<T>(), std::move(shape), std::move(strides), ptr, base) { }
@@ -747,13 +734,6 @@ template <typename T, int ExtraFlags = array::forcecast> class array_t : public
747734 array_t (ShapeContainer shape, StridesContainer strides, const T *ptr = nullptr , handle base = handle())
748735 : array(std::move(shape), std::move(strides), ptr, base) { }
749736
750- template <typename ShapeIt, typename StridesIt,
751- typename = detail::enable_if_t <detail::is_input_iterator<ShapeIt>::value && detail::is_input_iterator<StridesIt>::value>>
752- array_t (ShapeIt shape_first, ShapeIt shape_last, StridesIt strides_first, StridesIt strides_last,
753- const T *ptr = nullptr , handle base = handle())
754- : array(ShapeContainer(std::move(shape_first), std::move(shape_last)),
755- StridesContainer (std::move(strides_first), std::move(strides_last)), ptr, base) { }
756-
757737 explicit array_t (ShapeContainer shape, const T *ptr = nullptr , handle base = handle())
758738 : array(std::move(shape), ptr, base) { }
759739
0 commit comments