2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-25 14:32:08 +00:00

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]
This commit is contained in:
Christopher Kohlhoff
2009-02-02 09:36:11 +00:00
parent 7ff15bdb3e
commit 3d9eada294

View File

@@ -337,7 +337,7 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
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));