From 59310dddac0ad542fa13725fa3e9f9cee3c70361 Mon Sep 17 00:00:00 2001 From: Mohammad Nejati Date: Sat, 11 May 2024 06:24:00 +0000 Subject: [PATCH] Fix ambiguity in test::basic_stream constructor overloads --- include/boost/beast/_experimental/test/stream.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/beast/_experimental/test/stream.hpp b/include/boost/beast/_experimental/test/stream.hpp index 72f00768..2394f3bb 100644 --- a/include/boost/beast/_experimental/test/stream.hpp +++ b/include/boost/beast/_experimental/test/stream.hpp @@ -235,11 +235,11 @@ public: @param context The `io_context` object that the stream will use to dispatch handlers for any asynchronous operations. */ - template - explicit basic_stream(ExecutionContext& context, - typename std::enable_if< - std::is_convertible::value - >::type* = 0) + template ::value>::type> + explicit + basic_stream(ExecutionContext& context) : basic_stream(context.get_executor()) { }