mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Move destroy to the .cpp
This commit is contained in:
@@ -280,6 +280,13 @@ void HandlerCall::operator() (error_code const& ec, std::size_t bytes_transferre
|
||||
//
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
void ContainerDeletePolicy <HandlerCall::Call>::destroy (HandlerCall::Call* call)
|
||||
{
|
||||
call->destroy ();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
void* asio_handler_allocate (std::size_t size, HandlerCall* call)
|
||||
{
|
||||
// Always go through the call's context.
|
||||
|
||||
@@ -964,10 +964,7 @@ struct ContainerDeletePolicy <HandlerCall::Call>
|
||||
// SharedObjectPtr will use this when
|
||||
// the reference count drops to zero.
|
||||
//
|
||||
static void destroy (HandlerCall::Call* call)
|
||||
{
|
||||
call->destroy ();
|
||||
}
|
||||
static void destroy (HandlerCall::Call* call);
|
||||
};
|
||||
|
||||
template <class Function>
|
||||
|
||||
Reference in New Issue
Block a user