Re: Re: Re: Re: Re: Querying the Interest in a new AutoPtr class

Jonathan Turkanis wrote:
I'm not an expert with compilers so I'll tell you how it was explained to me. Different compilers could take the same C++ code and compile it into different machine code, causing function pointers to shift. When you pass an object that was compiled on one machine to a function that was compiled on another machine, you can't be sure that the object will be deleted properly.
I guess you're talking about passing objects between modules compiled with compilers having incompatible ABIs. In general this is a recipe for disaster. If you restrict yourself to a C language interface you often have more flexibility, but in that case you can't use smart pointers.
Is this what you mean?
Yes, that's exactly what I mean, and probably explained a little better too. __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail
participants (1)
-
Chris Just