diff options
author | jbeich <jbeich@FreeBSD.org> | 2018-04-18 14:39:11 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2018-04-18 14:39:11 +0800 |
commit | ee07b7d128c6fb328e8e5fea949cb0126c9827ad (patch) | |
tree | 20ab1b10ee9c81b86353982235eae79ec6ce9196 /devel/mongo-cxx-driver | |
parent | c74a9942256c7dd849db64b9d6bf378f3d25dbfa (diff) | |
download | freebsd-ports-gnome-ee07b7d128c6fb328e8e5fea949cb0126c9827ad.tar.gz freebsd-ports-gnome-ee07b7d128c6fb328e8e5fea949cb0126c9827ad.tar.zst freebsd-ports-gnome-ee07b7d128c6fb328e8e5fea949cb0126c9827ad.zip |
devel/mongo-cxx-driver: unbreak with boost 1.67
src/mongo/client/command_writer.cpp:68:78: error: no member named 'next' in namespace 'boost'
const std::vector<WriteOperation*>::const_iterator next = boost::next(batch_iter);
~~~~~~~^
src/mongo/util/net/message_port.h:34:38: error: expected class name
class AbstractMessagingPort : boost::noncopyable {
^
PR: 227427
Reported by: antoine (via exp-run)
Diffstat (limited to 'devel/mongo-cxx-driver')
-rw-r--r-- | devel/mongo-cxx-driver/files/patch-boost-1.67 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/devel/mongo-cxx-driver/files/patch-boost-1.67 b/devel/mongo-cxx-driver/files/patch-boost-1.67 new file mode 100644 index 000000000000..bdfbf452653f --- /dev/null +++ b/devel/mongo-cxx-driver/files/patch-boost-1.67 @@ -0,0 +1,26 @@ +src/mongo/client/command_writer.cpp:68:78: error: no member named 'next' in namespace 'boost' + const std::vector<WriteOperation*>::const_iterator next = boost::next(batch_iter); + ~~~~~~~^ +src/mongo/util/net/message_port.h:34:38: error: expected class name +class AbstractMessagingPort : boost::noncopyable { + ^ + +--- src/mongo/util/net/message_port.h.orig 2016-06-21 19:15:24 UTC ++++ src/mongo/util/net/message_port.h +@@ -20,8 +20,15 @@ + #include "mongo/config.h" + + #include <boost/shared_ptr.hpp> +-#include <boost/utility.hpp> + #include <vector> ++ ++#include <boost/version.hpp> ++#if BOOST_VERSION < 106700 ++#include <boost/utility.hpp> ++#else ++#include <boost/next_prior.hpp> ++#include <boost/noncopyable.hpp> ++#endif + + #include "mongo/util/net/message.h" + #include "mongo/util/net/sock.h" |