This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Long-term plan for C++98/C++11 incompatibility

On Fri, Oct 7, 2011 at 9:16 PM, Joe Buck <> wrote:
> On Fri, Oct 7, 2011 at 5:24 PM, James Y Knight <> wrote:
>> I guess to start, it would have been nice if there was a big warning on
>> telling me not to use c++0x mode
>> unless there are no objects compiled with c++98 linked into the same
>> executable.
> Gabriel Dos Reis [] wrote:
>> I was under the impression c++0x was explicitly documented as experimental.
> Yes. But I hope that some thought is devoted to figuring out how this problem
> can be dealt with when c++11 support is transitioned to a fully supported feature.

C++11 is essentially binary incompatible with C++98.

The best thing people should do is to take it seriously that that they should
not attempt to mix or play loose.

> Eventually there would need to be one libstdc++ that programs link against and
> run whether they use c++98 or c++11. I would expect there to be restrictions,
> but it's a problem that eventually needs to be tackled.

My opinion is that it would an exercise in futility, frustration, and
possibly deception
to try to make people believe that there are sets of simple rules they
can follow
to mix their C++98 binaries with fully compatible C++11 library.  They
would have to
recompile the source code.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]