diff --git a/src/numpy_cpp.h b/src/numpy_cpp.h index f1b7ffaa015d..c41e49d32374 100644 --- a/src/numpy_cpp.h +++ b/src/numpy_cpp.h @@ -403,7 +403,7 @@ class array_view : public detail::array_view_accessors Py_XDECREF(m_arr); } - const array_view& operator=(const array_view &other) + array_view& operator=(const array_view &other) { if (this != &other) {