2
0
mirror of https://github.com/boostorg/graph.git synced 2026-01-31 20:22:09 +00:00

Resolve assignment operator ambiguity with gcc 4.4.

This commit is contained in:
Andrey Semashev
2014-07-30 23:37:09 +04:00
parent 0f4ecbcd4b
commit 73c4e2e36c

View File

@@ -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<self&>(x).m_property);
return *this;
}
#else