From 73c4e2e36cb1cb5632b0e2171db2379e436714a7 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Wed, 30 Jul 2014 23:37:09 +0400 Subject: [PATCH] Resolve assignment operator ambiguity with gcc 4.4. --- include/boost/graph/detail/adjacency_list.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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