4 Jul 03:19
Re: [Boost.Bind] Adding a single argument to an existing function, breaks the code.
Steven Watanabe <watanabesj <at> gmail.com>
2008-07-04 01:19:37 GMT
2008-07-04 01:19:37 GMT
AMDG
Vjekoslav Brajkovic wrote:
> Thank you for taking your time to solve my problem.
I just realized what's going on.
Take a look in the handle_client function, there's a second
call to bind with handle_client. That's where the problem is. You should
pass a command_t in both places.
connection_.socket().async_connect(endpoint, boost::bind(
&com_client::handle_connect, this,
boost::asio::placeholders::error, ++endpoint_iterator));
In Christ,
Steven Watanabe
RSS Feed