]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adapt a patch from around the internet to fix an issue with gcc 4.6. 107/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 22 Aug 2014 02:12:28 +0000 (21:12 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 22 Aug 2014 18:53:21 +0000 (13:53 -0500)
bundled/boost-1.56.0/include/boost/graph/detail/adjacency_list.hpp

index 1145d88d299e927bd0376af30f631e1d4af2ee2a..f2a9856d526b937c11fe307991b931cdb6b3d5e7 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.