Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20425e2

Browse files
committed
Merge pull request #3813 from mdboom/non-const-operator=
Make array_view::operator= non-const
2 parents 677fd66 + 2e2266c commit 20425e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/numpy_cpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ class array_view : public detail::array_view_accessors<array_view, T, ND>
403403
Py_XDECREF(m_arr);
404404
}
405405

406-
const array_view& operator=(const array_view &other)
406+
array_view& operator=(const array_view &other)
407407
{
408408
if (this != &other)
409409
{

0 commit comments

Comments
 (0)