We have a member function in some .h file
template <typename MutableBufferSequence>
int read_some(boost::asio::ip::tcp::socket& sock,
const MutableBufferSequence& buffers)
{
return sock.read_some(buffers);
}
And such code we want to have in one of our class functions:
boost::packaged_task<int> pt(boost::bind(&http_request::read_some, this, &socket, boost::asio::buffer(buffer, buffer_size)));
This gives me 87 compiler errors and talls me that boost::bind does not work this way. I wonder how to pass boost::asio::buffer
via boost::bind
to my function?