Skip to content

Commit

Permalink
Fix for boost versions less than 1.66
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEntangledAndy committed Jun 8, 2019
1 parent 3e04b9e commit a3e4150
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/fscp/include/fscp/server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ namespace fscp
*/
boost::asio::io_service& get_io_service()
{
#if BOOST_ASIO_VERSION >= 101200 // Boost 1.66+
return reinterpret_cast<boost::asio::io_context&>(get_socket().get_executor().context());
#else
return get_socket().get_io_service();
#endif
}

/**
Expand Down

0 comments on commit a3e4150

Please sign in to comment.