From c4080003f54c6fe1b5fd19edd23f8cd5f9a9f79a Mon Sep 17 00:00:00 2001 From: Michael Dickens Date: Mon, 22 Jan 2018 14:30:37 -0500 Subject: rpclib: fix use of "boost::asio::strand" -> "boost::asio::io_service::strand" The former was marked as deprecated numerous Boost versions ago and finally was actually removed & replaced in 1.66.0 with a new one with a template API. The version in rpclib need to be updated, and Boost docs say to use the latter. Moving to this usage takes care of this issue. Reviewed-by: Martin Braun --- host/lib/deps/rpclib/include/rpc/detail/async_writer.h | 2 +- host/lib/deps/rpclib/include/rpc/detail/server_session.h | 2 +- host/lib/deps/rpclib/lib/rpc/client.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'host/lib/deps') diff --git a/host/lib/deps/rpclib/include/rpc/detail/async_writer.h b/host/lib/deps/rpclib/include/rpc/detail/async_writer.h index 941bb1d8f..1e17f1292 100644 --- a/host/lib/deps/rpclib/include/rpc/detail/async_writer.h +++ b/host/lib/deps/rpclib/include/rpc/detail/async_writer.h @@ -69,7 +69,7 @@ public: protected: boost::asio::ip::tcp::socket socket_; - boost::asio::strand write_strand_; + boost::asio::io_service::strand write_strand_; std::atomic_bool exit_{false}; bool exited_ = false; std::mutex m_exit_; diff --git a/host/lib/deps/rpclib/include/rpc/detail/server_session.h b/host/lib/deps/rpclib/include/rpc/detail/server_session.h index 963b082ec..754c0879c 100644 --- a/host/lib/deps/rpclib/include/rpc/detail/server_session.h +++ b/host/lib/deps/rpclib/include/rpc/detail/server_session.h @@ -35,7 +35,7 @@ private: private: server* parent_; boost::asio::io_service *io_; - boost::asio::strand read_strand_; + boost::asio::io_service::strand read_strand_; std::shared_ptr disp_; RPCLIB_MSGPACK::unpacker pac_; RPCLIB_MSGPACK::sbuffer output_buf_; diff --git a/host/lib/deps/rpclib/lib/rpc/client.cc b/host/lib/deps/rpclib/lib/rpc/client.cc index f4d649771..219bc3480 100644 --- a/host/lib/deps/rpclib/lib/rpc/client.cc +++ b/host/lib/deps/rpclib/lib/rpc/client.cc @@ -133,7 +133,7 @@ struct client::impl { client *parent_; boost::asio::io_service io_; - boost::asio::strand strand_; + boost::asio::io_service::strand strand_; std::atomic call_idx_; /// The index of the last call made std::unordered_map ongoing_calls_; std::string addr_; -- cgit v1.2.3