I see, thank you :)

On Fri, Aug 19, 2011 at 11:35 AM, Marat Abrarov <abrarov@mail.ru> wrote:
Hi, Allan.

> Is this a bug, or am I doing something wrong?

Note that deadline_timer always (!) invokes wait handler, even it was successfully cancelled (int res = timer1.cancel();
assert(res > 0);):
~~~
The handler for each cancelled operation will be invoked
with the boost::asio::error::operation_aborted error code.
~~~

Regards,
Marat Abrarov.



_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users