$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2006-02-06 23:10:33
Giovanni P. Deretta wrote:
> You could argue that as this is a useful behavior stream_socket should
> have pointer semantics by default and be reference counted. But you
> would force the space and time overhead of a shared_ptr to everybody
> (btw, shared_ptr still require dynamic allocation of the reference
> counter).
If users would always only hold references to the real resource, how
would they declare interest in a 'ready-for-read' event, and which of
the references would receive it ?
Regards,
Stefan