Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2008-09-03 05:06:10


Author: chris_kohlhoff
Date: 2008-09-03 05:06:10 EDT (Wed, 03 Sep 2008)
New Revision: 48560
URL: http://svn.boost.org/trac/boost/changeset/48560

Log:
Explicitly specify return type with bind to keep some compilers happy.

Text files modified:
   trunk/boost/asio/ssl/detail/openssl_stream_service.hpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/asio/ssl/detail/openssl_stream_service.hpp
==============================================================================
--- trunk/boost/asio/ssl/detail/openssl_stream_service.hpp (original)
+++ trunk/boost/asio/ssl/detail/openssl_stream_service.hpp 2008-09-03 05:06:10 EDT (Wed, 03 Sep 2008)
@@ -337,7 +337,7 @@
         buffer_size = max_buffer_size;
 
       boost::function<int (SSL*)> send_func =
- boost::bind(&::SSL_write, boost::arg<1>(),
+ boost::bind<int>(&::SSL_write, boost::arg<1>(),
             boost::asio::buffer_cast<const void*>(*buffers.begin()),
             static_cast<int>(buffer_size));
       openssl_operation<Stream> op(
@@ -373,7 +373,7 @@
       buffer_size = max_buffer_size;
 
     boost::function<int (SSL*)> send_func =
- boost::bind(&::SSL_write, boost::arg<1>(),
+ boost::bind<int>(&::SSL_write, boost::arg<1>(),
           boost::asio::buffer_cast<const void*>(*buffers.begin()),
           static_cast<int>(buffer_size));
 
@@ -411,7 +411,7 @@
         buffer_size = max_buffer_size;
 
       boost::function<int (SSL*)> recv_func =
- boost::bind(&::SSL_read, boost::arg<1>(),
+ boost::bind<int>(&::SSL_read, boost::arg<1>(),
             boost::asio::buffer_cast<void*>(*buffers.begin()),
             static_cast<int>(buffer_size));
       openssl_operation<Stream> op(recv_func,
@@ -447,7 +447,7 @@
       buffer_size = max_buffer_size;
 
     boost::function<int (SSL*)> recv_func =
- boost::bind(&::SSL_read, boost::arg<1>(),
+ boost::bind<int>(&::SSL_read, boost::arg<1>(),
           boost::asio::buffer_cast<void*>(*buffers.begin()),
           static_cast<int>(buffer_size));
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk