diff --git a/include/boost/graph/detail/adjacency_list.hpp b/include/boost/graph/detail/adjacency_list.hpp index 74723572..1145d88d 100644 --- a/include/boost/graph/detail/adjacency_list.hpp +++ b/include/boost/graph/detail/adjacency_list.hpp @@ -308,9 +308,9 @@ namespace boost { m_property = std::move(x.m_property); return *this; } - self& operator=(self& x) { + self& operator=(self const& x) { Base::operator=(static_cast< Base const& >(x)); - m_property = std::move(x.m_property); + m_property = std::move(const_cast(x).m_property); return *this; } #else