bug-autoconf
[Top][All Lists]
Advanced

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

[feature request] Selection of C++ compiler conformance level


From: Roger Leigh
Subject: [feature request] Selection of C++ compiler conformance level
Date: Sun, 8 May 2011 18:01:36 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

Hi,

For C compilers, we have several macros to select the minimum
standard version of the compiler (AC_PROG_CC_C89, AC_PROG_CC_C99
and AC_PROG_CC_STDC to select the most recent standard, and fall
back to an older standard if unavailable).

With C++0x forthcoming, it would be equally useful to have
corresponding macros to select the minimum C++ standard required.
I'd like to use C++0x features in my code, and hence I do need to
ensure that I'm using a compiler in C++0x mode to build.

Thus, these macros would be very useful (for example)

AC_PROG_CXX_CXX98 (C++98)
AC_PROG_CXX_CXX03 (C++03)
AC_PROG_CXX_CXXTR1 (TR1)
AC_PROG_CXX_CXX0X (C++0x)
AC_PROG_CXX_STDCXX (latest version with fallback to most recent
  available otherwise)

AC_PROG_CXX_CXX0X would add the appropriate compiler options
to $CXX, e.g. -std=gnu++0x for GCC.

This could be modelled entirely on the existing _AC_C_STD_TRY
(add _AC_CXX_STD_TRY), with the appropriate testcases to test
for basic C++0x conformance as we do for basic C99 conformance.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.

Attachment: signature.asc
Description: Digital signature


reply via email to

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