diff --git a/include/boost/asio/detail/strand_service.hpp b/include/boost/asio/detail/strand_service.hpp index d536ab7b..33b9f1a7 100644 --- a/include/boost/asio/detail/strand_service.hpp +++ b/include/boost/asio/detail/strand_service.hpp @@ -242,12 +242,9 @@ public: return impl_->handler_storage_.address(); } - template - friend void asio_handler_invoke(Function function, - invoke_current_handler*) - { - function(); - } + // The asio_handler_invoke hook is not defined here since the default one + // provides the correct behaviour, and including it here breaks MSVC 7.1 + // in some situations. private: strand_service& service_impl_;