From d3bbf3756d7d7fc930236f78a89abe10f71e6b59 Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Mon, 11 May 2015 09:29:32 +1000 Subject: [PATCH] Don't provide io_service typedef when ASIO_NO_DEPRECATED is defined. --- asio/include/asio/io_service.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/asio/include/asio/io_service.hpp b/asio/include/asio/io_service.hpp index 4eb7cc55..3cb7448a 100644 --- a/asio/include/asio/io_service.hpp +++ b/asio/include/asio/io_service.hpp @@ -21,8 +21,10 @@ namespace asio { +#if !defined(ASIO_NO_DEPRECATED) /// Typedef for backwards compatibility. typedef io_context io_service; +#endif // !defined(ASIO_NO_DEPRECATED) } // namespace asio