[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.)
- Re: Selecting a C++ standard, (continued)
- Re: Selecting a C++ standard, Adrian Bunk, 2012/10/30
- Re: Selecting a C++ standard, Roger Leigh, 2012/10/28
- Re: Selecting a C++ standard, Bob Friesenhahn, 2012/10/28
- Re: Selecting a C++ standard, Adrian Bunk, 2012/10/30
- Re: Selecting a C++ standard, Nick Bowler, 2012/10/30
- Re: Selecting a C++ standard, Adrian Bunk, 2012/10/30
- Re: Selecting a C++ standard, Paul Eggert, 2012/10/30
- Re: Selecting a C++ standard, Paul Eggert, 2012/10/28
- Re: Selecting a C++ standard, Adrian Bunk, 2012/10/28
Re: Selecting a C++ standard, Adrian Bunk, 2012/10/27
Re: Selecting a C++ standard,
Florian Weimer <=