]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common,rgw: workaround for boost 1.72
authorKefu Chai <kchai@redhat.com>
Mon, 23 Dec 2019 08:26:13 +0000 (16:26 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 23 Dec 2019 17:22:07 +0000 (01:22 +0800)
see also https://github.com/boostorg/coroutine/issues/46

will need to remove this change once we require boost >= 1.73

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/async/yield_context.h
src/rgw/rgw_asio_frontend.cc
src/test/librados/asio.cc

index fda9541eb436e9cd604690862205ea713f2b546d..436192c02f7d7f391661d279675b47e3167d2b55 100644 (file)
@@ -14,6 +14,8 @@
 
 #pragma once
 
+#include <boost/range/begin.hpp>
+#include <boost/range/end.hpp>
 #include <boost/asio/io_context.hpp>
 
 #include "acconfig.h"
index 7df74225f62f5a06b2726e1d644b9415f53cd7d8..deab1b0c66fbaf15767e21330f5d2ad4d9008140 100644 (file)
@@ -7,6 +7,8 @@
 
 #include <boost/asio.hpp>
 #define BOOST_COROUTINES_NO_DEPRECATION_WARNING
+#include <boost/range/begin.hpp>
+#include <boost/range/end.hpp>
 #include <boost/asio/spawn.hpp>
 #include <boost/intrusive/list.hpp>
 
index 9c86ad420c84044d3499fb28597cd9f7c6fd3864..8fa4bab197790ac7444780e05b1bb524dd3989c4 100644 (file)
@@ -21,6 +21,8 @@
 
 #ifdef HAVE_BOOST_CONTEXT
 #define BOOST_COROUTINES_NO_DEPRECATION_WARNING
+#include <boost/range/begin.hpp>
+#include <boost/range/end.hpp>
 #include <boost/asio/spawn.hpp>
 #endif
 #include <boost/asio/use_future.hpp>