Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50963 - trunk/boost/asio/ssl/detail
From: chris_at_[hidden]
Date: 2009-02-02 04:36:12


Author: chris_kohlhoff
Date: 2009-02-02 04:36:11 EST (Mon, 02 Feb 2009)
New Revision: 50963
URL: http://svn.boost.org/trac/boost/changeset/50963

Log:
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).

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 2009-02-02 04:36:11 EST (Mon, 02 Feb 2009)
@@ -337,7 +337,7 @@
         buffer_size = max_buffer_size;
 
       boost::function<int (SSL*)> send_func =
- boost::bind<int>(&::SSL_write, boost::arg<1>(),
+ boost::bind(boost::type<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<int>(&::SSL_write, boost::arg<1>(),
+ boost::bind(boost::type<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<int>(&::SSL_read, boost::arg<1>(),
+ boost::bind(boost::type<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<int>(&::SSL_read, boost::arg<1>(),
+ boost::bind(boost::type<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