$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Larry Evans (cppljevans_at_[hidden])
Date: 2007-09-20 19:42:58
On 09/20/07 18:06, Achilleas Margaritis wrote:
> O/H Larry Evans ÎγÏαÏε:
[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?
>
> I thought std containers use the allocator::pointer type for their pointers.
So then it should be easy. Just make the allocator template parameter
to the container template have allocator::pointer == gc_ptr<T> or
something like that. Maybe you could have an example of this in the
next version?