From d6fdafb203560dc3fbb905e065b2b9cb478b0127 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Sun, 26 Mar 2017 12:43:22 -0300 Subject: [PATCH] Fix unchecked type caster template Dim type --- include/pybind11/numpy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)