Switch to using declaration.

This commit is contained in:
Christopher Kohlhoff 2011-05-09 09:32:00 +10:00
parent 0cfaca8ad3
commit 14aad2f160
2 changed files with 4 additions and 4 deletions

View File

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

View File

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