2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-26 18:22:09 +00:00

Remove unnecessary specialisation of associated_cancellation_slot.

This commit is contained in:
Christopher Kohlhoff
2022-11-01 09:30:28 +11:00
parent 8be3d47f24
commit 07f71caef2

View File

@@ -1064,29 +1064,6 @@ struct associator<Associator,
}
};
template <typename AsyncWriteStream, typename DynamicBuffer_v2,
typename CompletionCondition, typename WriteHandler,
typename CancellationSlot>
struct associated_cancellation_slot<
detail::write_dynbuf_v2_op<AsyncWriteStream,
DynamicBuffer_v2, CompletionCondition, WriteHandler>,
CancellationSlot>
: detail::associated_cancellation_slot_forwarding_base<
WriteHandler, CancellationSlot>
{
typedef typename associated_cancellation_slot<
WriteHandler, CancellationSlot>::type type;
static type get(
const detail::write_dynbuf_v2_op<AsyncWriteStream,
DynamicBuffer_v2, CompletionCondition, WriteHandler>& h,
const CancellationSlot& s = CancellationSlot()) BOOST_ASIO_NOEXCEPT
{
return associated_cancellation_slot<WriteHandler,
CancellationSlot>::get(h.handler_, s);
}
};
#endif // !defined(GENERATING_DOCUMENTATION)
template <typename AsyncWriteStream, typename DynamicBuffer_v2,