autoconf-archive-maintainers | |
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #8613] Simplify _AX_CXX_COMPILE_STDCXX_11_testbody
From: |
anonymous |
Subject: |
[patch #8613] Simplify _AX_CXX_COMPILE_STDCXX_11_testbody |
Date: |
Fri, 27 Feb 2015 17:25:54 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0 |
URL:
<http://savannah.gnu.org/patch/?8613>
Summary: Simplify _AX_CXX_COMPILE_STDCXX_11_testbody
Project: GNU Autoconf Archive
Submitted by: None
Submitted on: Fri 27 Feb 2015 05:25:53 PM UTC
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
IIUC the _AX_CXX_COMPILE_STDCXX_11_testbody macro from
m4/am_cxx_compile_stdcxx_11.m4 tests for C++11 conformance via a number of
C++11 tricks. I think it would be simpler to just test the __cplusplus macro
against its C++11 value.
static_assert(__cplusplus >= 201103L, "C++11?");
I reckon GCC had an issue with this macro for a very long time, but IIUC it's
now resolved, and we can rely on it at least for values greater or equal to
that of C++11.
I also think this change would make it easier to support checking for newer
standards, like checking for the compliance of C++14. Its value for
__cplusplus is 201402L, so it would be as simple as changing the static assert
for that.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 27 Feb 2015 05:25:53 PM UTC Name:
0001-ax_cxx_compile_stdcxx_11-simplify-c-std-check.patch Size: 2kB By: None
<http://savannah.gnu.org/patch/download.php?file_id=33201>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8613>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [patch #8613] Simplify _AX_CXX_COMPILE_STDCXX_11_testbody,
anonymous <=