$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] asio::async_write
From: Juraj IvanÄiÄ (juraj.ivancic_at_[hidden])
Date: 2009-11-18 03:36:21
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.html
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.