ports/databases/mongodb40/files/patch-boost-1.67
Kurt Jaeger 1e6fc9c791 New port: databases/mongodb40
Mongo (from "humongous") is a high-performance, open source,
schema-free, document-oriented database. A common name in the
"NOSQL" community.

WWW: https://www.mongodb.com/

PR:		234310
Reported by:	Eric Madrid <eric@madrid.lol>
Submitted by:	Andrew Shevchuk <dev.ashevchuk@gmail.com>
Reviewed by:	Michael Booth <michal@wrotkowski.pl>
2019-03-02 13:10:50 +00:00

25 lines
1.2 KiB
Text

In file included from src/third_party/yaml-cpp-0.5.3/src/nodebuilder.cpp:5:
In file included from src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/detail/node.h:14:
In file included from src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/detail/node_ref.h:13:
In file included from src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/detail/node_data.h:20:
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 2018-02-16 21:50:58 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 {