From 2e2266cabd8675c7dd31e069ae2cd981ce812b70 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 18 Nov 2014 14:39:57 -0500 Subject: [PATCH] Make array_view::operator= non-const --- src/numpy_cpp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {