[C++-sig] Re: class_, HeldType, and NonCopyable...please help !!

David Abrahams dave at boost-consulting.com
Thu Mar 10 17:01:40 CET 2005


Stefan Seefeld <seefeld at sympatico.ca> writes:

> Hi David,
>
> welcome back ! ;-)
>
> David Abrahams wrote:
>
>> Uh, yeah.  Using a raw pointer as the HeldType is playing with fire.
>
> Do you have any suggestion as to how to deal with objects managed
> by a garbage collector (Boehm's) ? 

Oh, in that case, it might be okay.

> Is there any danger of the GC
> not seeing the python runtime referring to the objects ?

I don't see why there would be.

> I'm not sure I'm going to keep the GC in my code (I'm talking about
> the synopsis parse tree code, btw.), but for now it's there (legacy),
> and so I'd like to use it unchanged.

It seems like a good approach to that sort of data structure.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list