From: Wolfgang Bangerth Date: Fri, 22 Aug 2014 02:12:28 +0000 (-0500) Subject: Adapt a patch from around the internet to fix an issue with gcc 4.6. X-Git-Tag: v8.2.0-rc1~180^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b42c61314b65b4679ad8964b6bd0505db332784;p=dealii.git Adapt a patch from around the internet to fix an issue with gcc 4.6. --- diff --git a/bundled/boost-1.56.0/include/boost/graph/detail/adjacency_list.hpp b/bundled/boost-1.56.0/include/boost/graph/detail/adjacency_list.hpp index 1145d88d29..f2a9856d52 100644 --- a/bundled/boost-1.56.0/include/boost/graph/detail/adjacency_list.hpp +++ b/bundled/boost-1.56.0/include/boost/graph/detail/adjacency_list.hpp @@ -243,6 +243,15 @@ namespace boost { m_target = x.m_target; return *this; } + +#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) + // Copy-construct is not necessary since stored_edge_property is non-copyable (only movable) + // but it doesn't hurt to have it, does it? + stored_edge(const stored_edge&) = default; + stored_edge(stored_edge&&) = default; + stored_edge& operator=(stored_edge&&) = default; +#endif // If no rvalue support, no need to define move functions. + inline Vertex& get_target() const { return m_target; } inline const no_property& get_property() const { return s_prop; } inline bool operator==(const stored_edge& x) const