Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-03 16:50:04


AMDG

Vjekoslav Brajkovic wrote:
> This issue is when I modify the code such that
>
> connection_.socket().async_connect(endpoint,
> boost::bind(
> &com_client::handle_connect,
> this,
> //2,
> boost::asio::placeholders::error,
> ++endpoint_iterator)
> );
> <snip>
>
> enum command_t {
> DEPOSIT_CHUNK = 2,
> DETRIEVE_CHUNK = 4,
> HEARTBEAT = 16
> };
>
> I was hoping if somebody could explain this. I've attached g++ output.

You can't convert from int to command_t implicitly.
Does it work if you pass DEPOSIT_CHUNK instead
of 2?

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net