4 Jul 03:53
Re: [Boost.Bind] Adding a single argument to an existing function, breaks the code.
Vjekoslav Brajkovic <balkan <at> cs.washington.edu>
2008-07-04 01:53:05 GMT
2008-07-04 01:53:05 GMT
On Thu, 3 Jul 2008, Steven Watanabe wrote: > > 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)); > Wow. I cannot believe it. I am sorry if I have wasted your time. Once again, I really appreciate your help. Best, -V
RSS Feed