Boost logo

Boost :

From: Larry Evans (jcampbell3_at_[hidden])
Date: 2002-09-02 09:27:20


Philippe A. Bouchard wrote:

>Beman Dawes wrote:
>
>[...]
>
>
>
>>pointers. But policy-based smart pointers may be a better choice for
>>those who feel they absolutely must have 100% control over every detail of
>>implementation.
>>
>>
>
>I do not know yet the best policy to add. Maybe someone could help. I am
>more oriented towards the garbage collector and here is what I am thinking:
>
>Regular garbage collectors do not have a clue when exactly the object
>should be destroyed. This is not good news for QT widgets, for example.
>Maybe we could mix rc & gc advantages... to determine exactly when the
>object's life is terminated with reference counts followed by destruction &
>deallocation of the object using some type traits at a given time.
>
>
This is an excellent point and one raised now-and-then by the gc guru's on
gclist_at_[hidden] (search for "Finalizers & Reference counting" in
ftp://ftp.iecc.com/pub/gclist/gclist-0802).

Other advantages of a combination of rc & gc are noted at
http://lists.boost.org/MailArchives/boost/msg33535.php.


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