Switch to using declaration.
This commit is contained in:
parent
0cfaca8ad3
commit
14aad2f160
@ -35,7 +35,7 @@ inline void* allocate(std::size_t s, Handler& h)
|
||||
|| BOOST_WORKAROUND(__GNUC__, < 3)
|
||||
return ::operator new(s);
|
||||
#else
|
||||
using namespace asio;
|
||||
using asio::asio_handler_allocate;
|
||||
return asio_handler_allocate(s, boost::addressof(h));
|
||||
#endif
|
||||
}
|
||||
@ -47,7 +47,7 @@ inline void deallocate(void* p, std::size_t s, Handler& h)
|
||||
|| BOOST_WORKAROUND(__GNUC__, < 3)
|
||||
::operator delete(p);
|
||||
#else
|
||||
using namespace asio;
|
||||
using asio::asio_handler_deallocate;
|
||||
asio_handler_deallocate(p, s, boost::addressof(h));
|
||||
#endif
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ inline void invoke(Function& function, Context& context)
|
||||
Function tmp(function);
|
||||
tmp();
|
||||
#else
|
||||
using namespace asio;
|
||||
using asio::asio_handler_invoke;
|
||||
asio_handler_invoke(function, boost::addressof(context));
|
||||
#endif
|
||||
}
|
||||
@ -48,7 +48,7 @@ inline void invoke(const Function& function, Context& context)
|
||||
Function tmp(function);
|
||||
tmp();
|
||||
#else
|
||||
using namespace asio;
|
||||
using asio::asio_handler_invoke;
|
||||
asio_handler_invoke(function, boost::addressof(context));
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user