diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index 3227a12e..146dba43 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -340,11 +340,11 @@ public: template T *mutable_data(Ix... ix) { return &operator()(size_t(ix)...); } }; -template +template struct type_caster> { static_assert(Dim == 0 && Dim > 0 /* always fail */, "unchecked array proxy object is not castable"); }; -template +template struct type_caster> : type_caster> {}; NAMESPACE_END(detail)