Disambiguate enable_if and native_handle_type.

This commit is contained in:
Christopher Kohlhoff 2019-02-27 18:45:20 +11:00
parent ea67e69e3a
commit 4e49b8c3e5
5 changed files with 10 additions and 5 deletions

View File

@ -101,7 +101,8 @@ public:
template <typename ExecutionContext>
explicit basic_serial_port(ExecutionContext& context,
typename enable_if<
is_convertible<ExecutionContext&, execution_context&>::value
is_convertible<ExecutionContext&, execution_context&>::value,
basic_serial_port
>::type* = 0)
: impl_(context)
{

View File

@ -89,7 +89,8 @@ public:
template <typename ExecutionContext>
explicit basic_object_handle(ExecutionContext& context,
typename enable_if<
is_convertible<ExecutionContext&, execution_context&>::value
is_convertible<ExecutionContext&, execution_context&>::value,
basic_object_handle
>::type* = 0)
: impl_(context)
{

View File

@ -92,7 +92,8 @@ public:
template <typename ExecutionContext>
explicit basic_overlapped_handle(ExecutionContext& context,
typename enable_if<
is_convertible<ExecutionContext&, execution_context&>::value
is_convertible<ExecutionContext&, execution_context&>::value,
basic_overlapped_handle
>::type* = 0)
: impl_(context)
{

View File

@ -77,7 +77,8 @@ public:
template <typename ExecutionContext>
explicit basic_random_access_handle(ExecutionContext& context,
typename enable_if<
is_convertible<ExecutionContext&, execution_context&>::value
is_convertible<ExecutionContext&, execution_context&>::value,
basic_random_access_handle
>::type* = 0)
: basic_overlapped_handle<Executor>(context)
{

View File

@ -79,7 +79,8 @@ public:
template <typename ExecutionContext>
explicit basic_stream_handle(ExecutionContext& context,
typename enable_if<
is_convertible<ExecutionContext&, execution_context&>::value
is_convertible<ExecutionContext&, execution_context&>::value,
basic_stream_handle
>::type* = 0)
: basic_overlapped_handle<Executor>(context)
{