Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2007-09-20 16:01:17


On 09/20/07 14:33, Larry Evans wrote:
[snip]
> I think you'd have to change the implementation of the std containers
> to make it work because many would use pointers and these would have
> to be derived from the 'struct _ptr' defined in cppgc.hpp in order
> for them to be registered in the pointer data base as described in
> my other post:
>
> http://archives.free.net.ph/message/20070920.142319.8368416a.en.html
>
> Do you have any other idea about how it can be done?
>
IOW, if std::list were implemented like the _list in cppgc.hpp then
_list::_begin would have to be derived from _ptr. Hm...
What prevents the contents of _list from being garbage collected...
Oh yeah, it's created with std::new not gc_new.


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