Boost logo

Boost :

Subject: Re: [boost] [paired ptr] Proposing a new smart pointer object for managing bidirectional relationships between objects
From: Vicente Botet Escriba (vicente.botet_at_[hidden])
Date: 2010-05-04 08:08:46


Vicente Botet Escriba wrote:
>
> 3. the sizeof<paired_ptr> is 4 pointers, so 16 bytes assuming 4 bytes per
> pointer. Two of these pointers are the connect and disconnect callbacks.
> Should there be a separate callback version allowing an 8 byte skinny
> version without callbacks?
>

I agree that the callback version must be separated from the simpler one.
Why do you need the owner? in which cases it is needed?

With the new callback prototype you don't need any more the owner. So if
you make to independent classes, without call back only a pointer is needed.

Best,
Vicente.

-- 
View this message in context: http://old.nabble.com/-paired-ptr--Proposing-a-new-smart-pointer-object-for-managing-bidirectional-relationships-between-objects-tp28426033p28446531.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk