Re: [asio-users] using std::bind instead of boost::bind gives compile time error by ASIO_HANDLER_TY
Brought to you by:
chris_kohlhoff
From: Igor R <boo...@gm...> - 2018-09-15 17:17:13
|
> Hi. Here is some code: > > // pkt is a packet class > // session_ssl::handle_handshake is a member function and not static > // cli is the asio::ip::tcp::resolver::iterator* > > socket_.async_handshake( > cli ? asio::ssl::stream_base::client : asio::ssl::stream_base::server, > std::bind( // boost::bind( > &session_ssl::handle_handshake, > shared_from_this(), > std::placeholders::_1 // boost::placeholders::_1 > ) > ); It looks correct. The problem is most likely somewhere else... Try reproducing the issue in a short, self contained example. |