Move destroy to the .cpp

This commit is contained in:
Vinnie Falco
2013-08-18 12:13:31 -07:00
parent 7776781560
commit a110a01e0d
2 changed files with 8 additions and 4 deletions

View File

@@ -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.

View File

@@ -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>