diff --git a/asio_compatibility.hpp b/asio_compatibility.hpp index 1ebe809..dc08653 100644 --- a/asio_compatibility.hpp +++ b/asio_compatibility.hpp @@ -31,7 +31,12 @@ namespace SimpleWeb { using io_context = asio::io_context; using resolver_results = asio::ip::tcp::resolver::results_type; using async_connect_endpoint = asio::ip::tcp::endpoint; + +#if(ASIO_STANDALONE && ASIO_VERSION >= 101800) || BOOST_ASIO_VERSION >= 101800 using strand = asio::strand; +#else + using strand = asio::strand; +#endif template inline void post(io_context &context, handler_type &&handler) {