Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10382: 1.56.0 Graph adjacency_list has compile errors on g++ 4.6.4
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-17 16:05:15
#10382: 1.56.0 Graph adjacency_list has compile errors on g++ 4.6.4
----------------------------------------------+---------------------------
Reporter: Conrad Mercer <conrad.mercer@â¦> | Owner: jewillco
Type: Bugs | Status: new
Milestone: To Be Determined | Component: graph
Version: Boost 1.56.0 | Severity: Showstopper
Resolution: | Keywords: compile error
----------------------------------------------+---------------------------
Comment (by phreakuencies@â¦):
Hi,
I'm using gcc 4.9 (on archlinux) and had this bug (complained about
deleted operator on stored_edge_property), which appeared when using
adjacency_list with listS/vecS.
I added this patch and it did not change the behavior (bug still appears).
I noticed it is only enabled on a specific version of GCC and thus I
removed that condition but it made no difference. I looked into the .hpp
file (unpatched) and noticed there was a similar condition for
stored_edge_property, which now looks like this and the bug disappeared
(changed first line of this code):
{{{
#if defined(BOOST_MSVC) || (defined(BOOST_GCC))
stored_edge_property(self&& x) : Base(static_cast< Base const& >(x))
{
m_property.swap(x.m_property);
}
stored_edge_property(self const& x) : Base(static_cast< Base const&
>(x)) {
m_property.swap(const_cast<self&>(x).m_property);
}
self& operator=(self&& x) {
Base::operator=(static_cast< Base const& >(x));
m_property = std::move(x.m_property);
return *this;
}
self& operator=(self const& x) {
Base::operator=(static_cast< Base const& >(x));
m_property = std::move(const_cast<self&>(x).m_property);
return *this;
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10382#comment:6> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC