
20 Sep
2007
20 Sep
'07
8:01 p.m.
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.