From 4c43faec85038f64c696951326c0b5b98554a918 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 27 Sep 2013 13:13:27 -0700 Subject: [PATCH] Fix invoked_type type reference --- .../beast_asio/async/AbstractHandler.h | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/beast/modules/beast_asio/async/AbstractHandler.h b/src/beast/modules/beast_asio/async/AbstractHandler.h index e732324e5a..f999b9e5d4 100644 --- a/src/beast/modules/beast_asio/async/AbstractHandler.h +++ b/src/beast/modules/beast_asio/async/AbstractHandler.h @@ -163,8 +163,9 @@ struct AbstractHandler #else { return false; } #endif - void invoke (invoked_type& invoked) - { boost_asio_handler_invoke_helpers::invoke (invoked, m_h); } + void invoke (typename detail::AbstractHandlerCallBase::invoked_type& invoked) + { boost_asio_handler_invoke_helpers::invoke < + typename detail::AbstractHandlerCallBase::invoked_type, H> (invoked, m_h); } private: H m_h; Allocator m_alloc; @@ -260,8 +261,9 @@ struct AbstractHandler #else { return false; } #endif - void invoke (invoked_type& invoked) - { boost_asio_handler_invoke_helpers::invoke (invoked, m_h); } + void invoke (typename detail::AbstractHandlerCallBase::invoked_type& invoked) + { boost_asio_handler_invoke_helpers::invoke < + typename detail::AbstractHandlerCallBase::invoked_type, H> (invoked, m_h); } private: H m_h; Allocator m_alloc; @@ -356,8 +358,9 @@ struct AbstractHandler #else { return false; } #endif - void invoke (invoked_type& invoked) - { boost_asio_handler_invoke_helpers::invoke (invoked, m_h); } + void invoke (typename detail::AbstractHandlerCallBase::invoked_type& invoked) + { boost_asio_handler_invoke_helpers::invoke < + typename detail::AbstractHandlerCallBase::invoked_type, H> (invoked, m_h); } private: H m_h; Allocator m_alloc; @@ -450,8 +453,9 @@ struct AbstractHandler #else { return false; } #endif - void invoke (invoked_type& invoked) - { boost_asio_handler_invoke_helpers::invoke (invoked, m_h); } + void invoke (typename detail::AbstractHandlerCallBase::invoked_type& invoked) + { boost_asio_handler_invoke_helpers::invoke < + typename detail::AbstractHandlerCallBase::invoked_type, H> (invoked, m_h); } private: H m_h; Allocator m_alloc; @@ -544,8 +548,9 @@ struct AbstractHandler #else { return false; } #endif - void invoke (invoked_type& invoked) - { boost_asio_handler_invoke_helpers::invoke (invoked, m_h); } + void invoke (typename detail::AbstractHandlerCallBase::invoked_type& invoked) + { boost_asio_handler_invoke_helpers::invoke < + typename detail::AbstractHandlerCallBase::invoked_type, H> (invoked, m_h); } private: H m_h; Allocator m_alloc; @@ -638,8 +643,9 @@ struct AbstractHandler #else { return false; } #endif - void invoke (invoked_type& invoked) - { boost_asio_handler_invoke_helpers::invoke (invoked, m_h); } + void invoke (typename detail::AbstractHandlerCallBase::invoked_type& invoked) + { boost_asio_handler_invoke_helpers::invoke < + typename detail::AbstractHandlerCallBase::invoked_type, H> (invoked, m_h); } private: H m_h; Allocator m_alloc;