diff --git a/libs/fscp/include/fscp/server.hpp b/libs/fscp/include/fscp/server.hpp index 2b18a595..1f4b30ee 100644 --- a/libs/fscp/include/fscp/server.hpp +++ b/libs/fscp/include/fscp/server.hpp @@ -288,7 +288,11 @@ namespace fscp */ boost::asio::io_service& get_io_service() { +#if BOOST_ASIO_VERSION >= 101200 // Boost 1.66+ return reinterpret_cast(get_socket().get_executor().context()); +#else + return get_socket().get_io_service(); +#endif } /**