summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Giffuni <pfg@apache.org>2018-04-19 03:43:05 +0000
committerPedro Giffuni <pfg@apache.org>2018-04-19 03:43:05 +0000
commitdb5d4aa8de3d380c560636b9ac82a1213d42d309 (patch)
treeb9b4e71640c0e06bbcaff8cb1e06726e2e8bebbb
parent943443f350b571beb4e9c932067456e415ffa8fb (diff)
Fix build with boost-1.67.
The release notes say: ____ Utility: Breaking change: <boost/utility.hpp> header no longer includes boost::next and boost::prior as they have been moved to the iterator module. Instead include <boost/next_prior.hpp>. Other uses of <boost/utility.hpp> are discouraged, it's better to use the header for the specific functionality instead. ____ Obtained from: Jan Beich FreeBSD PR: 227553
Notes
Notes: ignore: obsolete
-rw-r--r--basegfx/source/range/b2drangeclipper.cxx7
-rw-r--r--slideshow/source/inc/listenercontainer.hxx7
2 files changed, 12 insertions, 2 deletions
diff --git a/basegfx/source/range/b2drangeclipper.cxx b/basegfx/source/range/b2drangeclipper.cxx
index 3563bbc5ef7f..2ca80a760412 100644
--- a/basegfx/source/range/b2drangeclipper.cxx
+++ b/basegfx/source/range/b2drangeclipper.cxx
@@ -35,7 +35,12 @@
#include <o3tl/vector_pool.hxx>
#include <boost/bind.hpp>
-#include <boost/utility.hpp>
+#include <boost/version.hpp>
+#if BOOST_VERSION < 106700
+# include <boost/utility.hpp>
+#else
+# include <boost/next_prior.hpp>
+#endif
#include <algorithm>
#include <deque>
diff --git a/slideshow/source/inc/listenercontainer.hxx b/slideshow/source/inc/listenercontainer.hxx
index bd1f9e384904..94bf77ab61d2 100644
--- a/slideshow/source/inc/listenercontainer.hxx
+++ b/slideshow/source/inc/listenercontainer.hxx
@@ -24,7 +24,12 @@
#define INCLUDED_SLIDESHOW_LISTENERCONTAINER_HXX
#include <osl/mutex.hxx>
-#include <boost/utility.hpp>
+#include <boost/version.hpp>
+#if BOOST_VERSION < 106700
+# include <boost/utility.hpp>
+#else
+# include <boost/next_prior.hpp>
+#endif
#include <algorithm>
#include <vector>