From 483f3d32d64d73e1189403149b238f5ac96eaefd Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Thu, 28 Feb 2019 00:03:14 +1100 Subject: [PATCH] Repeat typedefs in derived class templates to fix gcc compile error on Windows. --- include/boost/asio/windows/basic_random_access_handle.hpp | 8 ++++++++ include/boost/asio/windows/basic_stream_handle.hpp | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/include/boost/asio/windows/basic_random_access_handle.hpp b/include/boost/asio/windows/basic_random_access_handle.hpp index e3603052..0f2abb84 100644 --- a/include/boost/asio/windows/basic_random_access_handle.hpp +++ b/include/boost/asio/windows/basic_random_access_handle.hpp @@ -44,6 +44,14 @@ public: /// The type of the executor associated with the object. typedef Executor executor_type; + /// The native representation of a handle. +#if defined(GENERATING_DOCUMENTATION) + typedef implementation_defined native_handle_type; +#else + typedef boost::asio::detail::win_iocp_handle_service::native_handle_type + native_handle_type; +#endif + /// Construct a random-access handle without opening it. /** * This constructor creates a random-access handle without opening it. diff --git a/include/boost/asio/windows/basic_stream_handle.hpp b/include/boost/asio/windows/basic_stream_handle.hpp index e39e225f..40d5abb2 100644 --- a/include/boost/asio/windows/basic_stream_handle.hpp +++ b/include/boost/asio/windows/basic_stream_handle.hpp @@ -47,6 +47,14 @@ public: /// The type of the executor associated with the object. typedef Executor executor_type; + /// The native representation of a handle. +#if defined(GENERATING_DOCUMENTATION) + typedef implementation_defined native_handle_type; +#else + typedef boost::asio::detail::win_iocp_handle_service::native_handle_type + native_handle_type; +#endif + /// Construct a stream handle without opening it. /** * This constructor creates a stream handle without opening it.