Boost logo

Boost Users :

Subject: Re: [Boost-users] asio::async_write
From: Igor R (boost.lists_at_[hidden])
Date: 2009-11-18 03:54:10


> Note that shared_from_this will not work unless object is created on heap and placed in a shared_ptr.
>
> Creating asynchronous operation handlers on stack does not make much sense.

It does make sense, if the handler is a lightweight copiable object.


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