Skip to content

Commit

Permalink
[build] Adds support for Boost >= 1.70.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vincent committed May 19, 2019
1 parent eff28b8 commit d16490d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/freelan/src/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ namespace freelan

boost::apply_visitor(
asiotap::endpoint_async_resolve_visitor(
boost::make_shared<resolver_type>(boost::ref(m_io_service)),
boost::make_shared<resolver_type>(m_io_service),
to_protocol(m_configuration.fscp.hostname_resolution_protocol),
resolver_query::address_configured,
DEFAULT_SERVICE,
Expand Down
2 changes: 1 addition & 1 deletion libs/fscp/include/fscp/server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ namespace fscp
*/
boost::asio::io_service& get_io_service()
{
return get_socket().get_io_service();
return reinterpret_cast<boost::asio::io_context&>(get_socket().get_executor().context());
}

/**
Expand Down
2 changes: 1 addition & 1 deletion libs/fscp/src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ namespace fscp
template <typename WaitHandler>
void server::ep_hello_context_type::async_wait_reply(boost::asio::io_service& io_service, uint32_t hello_unique_number, const boost::posix_time::time_duration& timeout, WaitHandler handler)
{
const boost::shared_ptr<boost::asio::deadline_timer> timer = boost::make_shared<boost::asio::deadline_timer>(boost::ref(io_service), timeout);
const boost::shared_ptr<boost::asio::deadline_timer> timer = boost::make_shared<boost::asio::deadline_timer>(io_service, timeout);

m_pending_requests[hello_unique_number] = pending_request_status(timer);

Expand Down

0 comments on commit d16490d

Please sign in to comment.