#include "librbd/operation/ResizeRequest.h"
#include "osdc/Striper.h"
-#include <boost/bind.hpp>
#include <boost/algorithm/string/predicate.hpp>
#define dout_subsys ceph_subsys_rbd
#include "librbd/io/AioCompletion.h"
#include "include/encoding.h"
#include "common/errno.h"
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#define dout_subsys ceph_subsys_rbd
#undef dout_prefix
using ceph::encode;
using ceph::decode;
+using namespace boost::placeholders;
+
static const double RETRY_DELAY_SECONDS = 1.0;
template <typename I>
#include "librbd/operation/SnapshotLimitRequest.h"
#include "librbd/operation/SparsifyRequest.h"
#include <set>
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#include <boost/scope_exit.hpp>
#define dout_subsys ceph_subsys_rbd
namespace librbd {
+using namespace boost::placeholders;
+
namespace {
template <typename I>
#include "librbd/asio/ContextWQ.h"
#include "include/encoding.h"
#include "common/errno.h"
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
// re-include our assert to clobber the system one; fix dout:
#include "include/ceph_assert.h"
namespace librbd {
+using namespace boost::placeholders;
+
using namespace watcher;
using util::create_context_callback;
#include "librbd/io/ObjectRequest.h"
#include "librbd/io/ReadResult.h"
-#include <boost/bind.hpp>
#include <boost/lambda/bind.hpp>
#include <boost/lambda/construct.hpp>
#include "librbd/io/ImageRequest.h"
#include "librbd/io/ReadResult.h"
-#include <boost/bind.hpp>
#include <boost/optional.hpp>
#define dout_subsys ceph_subsys_rbd
#include "common/errno.h"
#include "osdc/Striper.h"
-#include <boost/bind.hpp>
#include <boost/lambda/bind.hpp>
#include <boost/lambda/construct.hpp>
#include <boost/scope_exit.hpp>
std::string PyModule::config_prefix = "mgr/";
// Courtesy of http://stackoverflow.com/questions/1418015/how-to-get-python-exception-text
+#define BOOST_BIND_GLOBAL_PLACEHOLDERS
+// Boost apparently can't be bothered to fix its own usage of its own
+// deprecated features.
#include <boost/python.hpp>
+#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <boost/algorithm/string/predicate.hpp>
#include "include/ceph_assert.h" // boost clobbers this
// decode a Python exception into a string
#include "mgr/Gil.h"
+#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <boost/python.hpp>
+#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
#include "include/ceph_assert.h" // boost clobbers this
// For ::config_prefix
#ifndef _INCLUDED_BOUNDED_BUFFER_HPP
#define _INCLUDED_BOUNDED_BUFFER_HPP
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#include <boost/circular_buffer.hpp>
#include <boost/thread/condition.hpp>
#include <boost/thread/mutex.hpp>
#include <string_view>
#include <boost/algorithm/string/predicate.hpp>
-#include <boost/bind.hpp>
#include <boost/optional.hpp>
#include <boost/utility/in_place_factory.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/tokenizer.hpp>
+#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <s3select/include/s3select.h>
+#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <liboath/oath.h>
#include "common/Finisher.h"
#include "test/librados_test_stub/TestCluster.h"
#include "test/librados_test_stub/TestRadosClient.h"
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#include <boost/function.hpp>
#include "include/ceph_assert.h"
#include "gtest/gtest.h"
#include <boost/assign/std/set.hpp>
#include <boost/assign/std/map.hpp>
-#include <boost/bind.hpp>
#include <boost/scope_exit.hpp>
#include <boost/thread/thread.hpp>
#include <iostream>
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
+#include <boost/bind/bind.hpp>
#include "CacheClient.h"
#include "common/Cond.h"
#include <atomic>
#include <boost/asio.hpp>
-#include <boost/bind.hpp>
#include <boost/asio/error.hpp>
#include <boost/algorithm/string.hpp>
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#include "common/debug.h"
#include "common/ceph_context.h"
#include "CacheServer.h"
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
+#include <boost/bind/bind.hpp>
#include "common/debug.h"
#include "common/ceph_context.h"
#include "CacheSession.h"
#ifndef CEPH_CACHE_SESSION_H
#define CEPH_CACHE_SESSION_H
-#include <boost/bind.hpp>
#include <boost/asio.hpp>
#include <boost/asio/error.hpp>
#include "common/TextTable.h"
#include <algorithm>
#include <iostream>
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#include <boost/program_options.hpp>
namespace rbd {
namespace at = argument_types;
namespace po = boost::program_options;
+using namespace boost::placeholders;
static int disk_usage_callback(uint64_t offset, size_t len, int exists,
void *arg) {
#include "common/Formatter.h"
#include "common/TextTable.h"
#include <iostream>
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#include <boost/program_options.hpp>
#include "global/global_context.h"
namespace at = argument_types;
namespace po = boost::program_options;
+using namespace boost::placeholders;
enum WorkerState {
STATE_IDLE = 0,
#include "common/TextTable.h"
#include <iostream>
#include <boost/program_options.hpp>
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
namespace rbd {
namespace action {
namespace snap {
+using namespace boost::placeholders;
+
static const std::string ALL_NAME("all");
namespace at = argument_types;
#include <iostream>
#include <sstream>
#include <boost/program_options.hpp>
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
namespace rbd {
namespace action {
namespace trash {
+using namespace boost::placeholders;
namespace at = argument_types;
namespace po = boost::program_options;
// vim: ts=8 sw=2 smarttab
#include "NamespaceReplayer.h"
-#include <boost/bind.hpp>
#include "common/Formatter.h"
#include "common/debug.h"
#include "common/errno.h"
// vim: ts=8 sw=2 smarttab
#include "PoolReplayer.h"
-#include <boost/bind.hpp>
#include "common/Cond.h"
#include "common/Formatter.h"
#include "common/admin_socket.h"
#include "librbd/asio/ContextWQ.h"
#include "tools/rbd_mirror/Threads.h"
#include "tools/rbd_mirror/pool_watcher/RefreshImagesRequest.h"
-#include <boost/bind.hpp>
#define dout_context g_ceph_context
#define dout_subsys ceph_subsys_rbd_mirror