Skip to content

Commit

Permalink
Merge pull request #198 from QuantumEntangledAndy/pre-boost-1.66
Browse files Browse the repository at this point in the history
Fix for boost versions less than 1.66
  • Loading branch information
s-vincent authored Jun 9, 2019
2 parents 7f6c0c0 + a3e4150 commit 6f14cf9
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 6f14cf9

Please sign in to comment.