[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Next C++ transition



Daniel Jacobowitz <dan@debian.org> writes:

>> I don't think this will work in general because a DSO might expose the
>> layout of objects provided by the standard library in its public
>> interface.  That's part of the reason why I think that symbol
>> versioning is way overrated in some circles. 8-)
>> 
>> However, if the library just exports a C API, it should be okay.
>
> Not only this, but in fact, the layout of nearly every object exposed
> by the standard library hasn't changed.  So in practice, I expect it to
> work :)

Aha!  

Well, there *might* be a problem with reference count handling for
std::string -- it handles the rep object for the empty string
separately, by explicitly checking its address.  With to copies of
libstdc++, we end up with two empty string reps, with different
addresses.

-- 
Current mail filters: many dial-up/DSL/cable modem hosts, and the
following domains: atlas.cz, bigpond.com, di-ve.com, hotmail.com,
jumpy.it, libero.it, netscape.net, postino.it, simplesnet.pt,
tiscali.co.uk, tiscali.cz, tiscali.it, voila.fr.



Reply to: