2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-28 06:42:08 +00:00

Repeat typedefs in derived class templates to fix gcc compile error on Windows.

This commit is contained in:
Christopher Kohlhoff
2019-02-28 00:03:14 +11:00
parent baca9a092f
commit 483f3d32d6
2 changed files with 16 additions and 0 deletions

View File

@@ -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.

View File

@@ -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.