From db8e8951daadfe5121def7a0a854afbce467e6c9 Mon Sep 17 00:00:00 2001 From: leeter Date: Sat, 12 Nov 2016 14:50:46 -0700 Subject: [PATCH] fully qualify handler_type<> template in BOOST_ASIO_HANDLER_TYPE macro This allows developers to use the handler verification macros in custom services and streams, without this they will receive and error unless they define their code in the `::boost::asio` namespace or do a `using namespace boost::asio;` neither of which are ideal. --- include/boost/asio/handler_type.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/asio/handler_type.hpp b/include/boost/asio/handler_type.hpp index e4f2de88..ea96b149 100644 --- a/include/boost/asio/handler_type.hpp +++ b/include/boost/asio/handler_type.hpp @@ -109,6 +109,6 @@ struct handler_type #include #define BOOST_ASIO_HANDLER_TYPE(h, sig) \ - typename handler_type::type + typename ::boost::asio::handler_type::type #endif // BOOST_ASIO_HANDLER_TYPE_HPP