
21 Sep
2007
21 Sep
'07
8:27 p.m.
I'm not saying modify _list in the collector, I'm only saying you could modify it to use:
Allocator<T>::pointer _list<T>::_begin;
instead of:
T* _list<T>::_begin;
where, in the case of _list used in your collector, it would default to what it is now, but for the _list used in GCBench (as defined in main_stl.cpp) it would be Allocator::<T>::pointer which would be:
gc_ptr<T>
So you'd be reusing the _list code as part of the collector implementation; yet, also to demonstrate how std::list could be modified so that it would work with your collector.
Sorry, I haven't seen main_stl.cpp. Can I get it from somewhere?