From 295d977d78fde362cf2c3cf676005dfd6238f825 Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Wed, 3 Sep 2008 09:06:10 +0000 Subject: [PATCH] Explicitly specify return type with bind to keep some compilers happy. [SVN r48560] --- 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 6e81c5ab..b33a7577 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(&::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(&::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(&::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(&::SSL_read, boost::arg<1>(), boost::asio::buffer_cast(*buffers.begin()), static_cast(buffer_size));