From 3d9eada294bfde3588c045c182add35806cd9f8d Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Mon, 2 Feb 2009 09:36:11 +0000 Subject: [PATCH] Use the workaround syntax for specifying a return type with boost::bind. Needed for the SSL support to work on some older compilers (in particular, g++ 3.4.5 as used with MinGW). [SVN r50963] --- include/boost/asio/ssl/detail/openssl_stream_service.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/asio/ssl/detail/openssl_stream_service.hpp b/include/boost/asio/ssl/detail/openssl_stream_service.hpp index b33a7577..ef6a88d0 100644 --- a/include/boost/asio/ssl/detail/openssl_stream_service.hpp +++ b/include/boost/asio/ssl/detail/openssl_stream_service.hpp @@ -337,7 +337,7 @@ public: buffer_size = max_buffer_size; boost::function send_func = - boost::bind(&::SSL_write, boost::arg<1>(), + boost::bind(boost::type(), &::SSL_write, boost::arg<1>(), boost::asio::buffer_cast(*buffers.begin()), static_cast(buffer_size)); openssl_operation op( @@ -373,7 +373,7 @@ public: buffer_size = max_buffer_size; boost::function send_func = - boost::bind(&::SSL_write, boost::arg<1>(), + boost::bind(boost::type(), &::SSL_write, boost::arg<1>(), boost::asio::buffer_cast(*buffers.begin()), static_cast(buffer_size)); @@ -411,7 +411,7 @@ public: buffer_size = max_buffer_size; boost::function recv_func = - boost::bind(&::SSL_read, boost::arg<1>(), + boost::bind(boost::type(), &::SSL_read, boost::arg<1>(), boost::asio::buffer_cast(*buffers.begin()), static_cast(buffer_size)); openssl_operation op(recv_func, @@ -447,7 +447,7 @@ public: buffer_size = max_buffer_size; boost::function recv_func = - boost::bind(&::SSL_read, boost::arg<1>(), + boost::bind(boost::type(), &::SSL_read, boost::arg<1>(), boost::asio::buffer_cast(*buffers.begin()), static_cast(buffer_size));