mirror of
https://github.com/boostorg/asio.git
synced 2026-02-26 02:42:08 +00:00
Avoid evaluating concept when Executor1 is not an executor.
This commit is contained in:
@@ -1925,8 +1925,10 @@ public:
|
||||
template <typename Executor1,
|
||||
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
||||
typename Protocol::socket::template rebind_executor<
|
||||
Executor1>::other)) MoveAcceptToken
|
||||
BOOST_ASIO_DEFAULT_COMPLETION_TOKEN_TYPE(executor_type)>
|
||||
typename constraint<is_executor<Executor1>::value
|
||||
|| execution::is_executor<Executor1>::value,
|
||||
Executor1>::type>::other)) MoveAcceptToken
|
||||
BOOST_ASIO_DEFAULT_COMPLETION_TOKEN_TYPE(executor_type)>
|
||||
BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(MoveAcceptToken,
|
||||
void (boost::system::error_code,
|
||||
typename Protocol::socket::template rebind_executor<
|
||||
@@ -2487,8 +2489,10 @@ public:
|
||||
template <typename Executor1,
|
||||
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
||||
typename Protocol::socket::template rebind_executor<
|
||||
Executor1>::other)) MoveAcceptToken
|
||||
BOOST_ASIO_DEFAULT_COMPLETION_TOKEN_TYPE(executor_type)>
|
||||
typename constraint<is_executor<Executor1>::value
|
||||
|| execution::is_executor<Executor1>::value,
|
||||
Executor1>::type>::other)) MoveAcceptToken
|
||||
BOOST_ASIO_DEFAULT_COMPLETION_TOKEN_TYPE(executor_type)>
|
||||
BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_PREFIX(MoveAcceptToken,
|
||||
void (boost::system::error_code,
|
||||
typename Protocol::socket::template rebind_executor<
|
||||
|
||||
Reference in New Issue
Block a user