|
Boost : |
From: Giovanni P. Deretta (gpderetta_at_[hidden])
Date: 2006-02-06 23:50:27
Stefan Seefeld wrote:
> 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 ?
>
I do not understand exactly what you are asking? Could you eleaborate?
-- Giovanni P. Deretta
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk