
18 Nov
2009
18 Nov
'09
8:36 a.m.
Lloyd wrote:
Hi,
I have been trying very hard to "compile" this code. What is the reason for the compilation errors in the "async_write" call.
</snip> You do not inherit from enable_shared_from_this http://www.boost.org/doc/libs/1_40_0/libs/smart_ptr/enable_shared_from_this.... 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.