From 5b42c61314b65b4679ad8964b6bd0505db332784 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 21 Aug 2014 21:12:28 -0500 Subject: [PATCH] Adapt a patch from around the internet to fix an issue with gcc 4.6. --- .../include/boost/graph/detail/adjacency_list.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.39.5