C++98/C++11 ABI compatibility for gcc-4.7
Chris Jefferson
chris@bubblescope.net
Sat Jun 16 09:43:00 GMT 2012
On 15/06/12 21:45, Gabriel Dos Reis wrote:
> On Fri, Jun 15, 2012 at 3:12 PM, James Y Knight<foom@fuhm.net> wrote:
>
>> IMO, at the /very least/, libstdc++ should go ahead and change std::string
>> to be the new implementation. Once std::string is ABI-incompatible between
>> the modes, there's basically no chance that anyone would think that
>> linking things together from the two modes is a good thing to try, for
>> more than a couple minutes.
>>
> Agreed.
While I realise it doesn't fix all problems (for example, with return
values), is there any reason the C++11 ABI-incompatable types have not
been put into a seperate inline namespace, so compiling fails at
link-time rather than at run-time?
Chris
More information about the Gcc
mailing list