forked from boostorg/beast
Fix ambiguity in test::basic_stream constructor overloads
This commit is contained in:
committed by
Mohammad Nejati
parent
3461ad1a2b
commit
59310dddac
@@ -235,11 +235,11 @@ public:
|
|||||||
@param context The `io_context` object that the stream will use to
|
@param context The `io_context` object that the stream will use to
|
||||||
dispatch handlers for any asynchronous operations.
|
dispatch handlers for any asynchronous operations.
|
||||||
*/
|
*/
|
||||||
template <typename ExecutionContext>
|
template <class ExecutionContext,
|
||||||
explicit basic_stream(ExecutionContext& context,
|
class = typename std::enable_if<
|
||||||
typename std::enable_if<
|
std::is_convertible<ExecutionContext&, net::execution_context&>::value>::type>
|
||||||
std::is_convertible<ExecutionContext&, net::execution_context&>::value
|
explicit
|
||||||
>::type* = 0)
|
basic_stream(ExecutionContext& context)
|
||||||
: basic_stream(context.get_executor())
|
: basic_stream(context.get_executor())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user