Boost logo

Boost :

From: Chris Just (cpjust_at_[hidden])
Date: 2005-02-15 10:35:11


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk