aboutsummaryrefslogtreecommitdiff
path: root/databases/mongodb34/files/patch-boost-1.67
blob: a8ccacbf3499a54e527a47fd6a877fee375d245b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
In file included from src/third_party/yaml-cpp-0.5.3/src/convert.cpp:3:
In file included from src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/convert.h:17:
In file included from src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/impl.h:11:
In file included from src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/iterator.h:13:
src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/detail/iterator.h:48:54: error: no member named 'next' in namespace 'boost'
  void increment() { this->base_reference() = boost::next(this->base()); }
                                              ~~~~~~~^

--- src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/detail/iterator.h.orig	2017-09-07 19:28:48 UTC
+++ src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/detail/iterator.h
@@ -11,7 +11,13 @@
 #include "yaml-cpp/node/ptr.h"
 #include "yaml-cpp/node/detail/node_iterator.h"
 #include <boost/iterator/iterator_adaptor.hpp>
+
+#include <boost/version.hpp>
+#if BOOST_VERSION < 106700
 #include <boost/utility.hpp>
+#else
+#include <boost/next_prior.hpp>
+#endif
 
 namespace YAML {
 namespace detail {