Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-01-15 06:32:51


From: "Philippe A. Bouchard" <philippeb_at_[hidden]>
> Greeting everyone,
>
> It seems placement operator new (size_t, ...) would extend a lot
garbage
> collection possibilities. Why don't we define a set of rules for each tag
> this overloaded placed operator would use:
>
> shared_ptr<int>(new int());
>
> GC type defined at run-time:
> shared_ptr<int>(new (gc) int()); // Add pointer to a list
> shared_ptr<int>(new (rc) int()); // Add counter + pointer to a list
> shared_ptr<int>(new (os) int()); // Add owner to a list

I am not sure how these are intended to work, and in particular, how is
shared_ptr<> supposed to handle the different variations, given that it gets
a plain "int *" in all cases.


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