Skip to content

Commit

Permalink
Merge pull request #3813 from mdboom/non-const-operator=
Browse files Browse the repository at this point in the history
Make array_view::operator= non-const
  • Loading branch information
mdboom committed Nov 19, 2014
2 parents 677fd66 + 2e2266c commit 20425e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/numpy_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ class array_view : public detail::array_view_accessors<array_view, T, ND>
Py_XDECREF(m_arr);
}

const array_view& operator=(const array_view &other)
array_view& operator=(const array_view &other)
{
if (this != &other)
{
Expand Down

0 comments on commit 20425e2

Please sign in to comment.