tech-pkg archive

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

Re: chosing a C++ version/compiler (was: icu wants c++11)



On Mon, Apr 24, 2017 at 02:07:17PM +0200, Edgar Fuß wrote:
> Is C++n a superset of C++m for n>m?

Mostly. There are a couple of things that explicitly create problems for
m == 2003 and there is the problem of at least one semantic change that
can potentially result in miscompiled code (destructors are tagged as
not throwing by default in 2011). For m>=2011 it should be transparent.

There is also the ABI breaking mess in libstdc++ to consider of course,
i.e. depending on how libstdc++ from GCC 5.1+ is installed, code
compiled with -std=c++11 may or may not link correctly with -std=c++03.

Joerg


Home | Main Index | Thread Index | Old Index