]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/graph/example/ordered_out_edges.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / graph / example / ordered_out_edges.cpp
index 5c45373af4811ecf28f857f1639f52beb0a285f3..23e3e49bb0153cd0279c156ada42e4c0f157b9ab 100644 (file)
@@ -6,6 +6,17 @@
 // accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 //=======================================================================
+
+
+
+/*
+   IMPORTANT:
+   ~~~~~~~~~~
+
+   This example appears to be broken and crashes at runtime, see https://github.com/boostorg/graph/issues/149
+
+*/
+
 #include <boost/config.hpp>
 #include <iostream>
 #include <functional>
 
 template <class StoredEdge>
 struct order_by_name
-  : public std::binary_function<StoredEdge,StoredEdge,bool> 
 {
+  typedef StoredEdge first_argument_type;
+  typedef StoredEdge second_argument_type;
+  typedef bool result_type;
   bool operator()(const StoredEdge& e1, const StoredEdge& e2) const {
     // Order by target vertex, then by name. 
     // std::pair's operator< does a nice job of implementing