Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2003-01-09 11:34:21


"Greg Colvin" <Gregory.Colvin_at_[hidden]> wrote in message
news:5.2.0.9.2.20030107100911.01df7680_at_rgmgitmail.oraclecorp.com...
> At 09:23 AM 1/7/2003, Peter Dimov wrote:
> >From: "William E. Kempf" <wekempf_at_[hidden]>

[...]

> A smart pointer approach is the only way I know to write a
> portable collector, but it is not really the best way to
> write a high-performance collector. My preference is to
> have a special new(gc) allocator for collectable objects,
> and compiler support for a collector that can scan all
> objects for pointers to collectable objects. If new(gc)
> is never called there need be no overhead.

This was the main idea behind new (gc), new (rc) and new (os) of placed_ptr.
Is now using a compile-time trait (defaults to gc):
http://groups.yahoo.com/group/boost/files/placed_ptr/

Philippe A. Bouchard


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