autoconf
[Top][All Lists]
Advanced

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

Re: Selecting a C++ standard


From: Florian Weimer
Subject: Re: Selecting a C++ standard
Date: Sun, 28 Oct 2012 16:25:24 +0100

* Roger Leigh:

> I would propose to add:
>
> AC_PROG_CXX_STDCXX
> AC_PROG_CXX_CXX98
> AC_PROG_CXX_CXXTR1 [CXX98 with additional checks for TR1 headers]
> AC_PROG_CXX_CXX11
>
> With behaviour the same as the existing C macros.

This would be unwise because picking the most recent
compiler-supported standard will likely break programs on GNU/Linux.
Switching from C++98 to C++11 changes the ABI of standard library
templates, so it's basically an all-or-nothing choice for the entire
system.  (Other language changes can break compilation, but these are
less obnoxious and easier to work around.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]