Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Message-ID | <2011041207432337126-pete@versatilecodingcom> (permalink) |
|---|---|
| Newsgroups | comp.std.c++ |
| From | Pete Becker <pete@versatilecoding.com> |
| Subject | Re: Checking C++0X support |
| Organization | Roundhouse Consulting, Ltd. |
| References | <90g37sF3a6U1@mid.dfncis.de> |
| Date | 2011-04-12 13:09 -0600 |
On 2011-04-11 09:28:43 -0400, Helmut Jarausch said: > for some time, some compilers won't support the (full) C++0X standard. > For an even longer time, software won't require the usage of such a > compiler, but also don't want to preclude taking advantage of the new > features if such a compiler is used. > So, there is need for a portable compile time check for C++0X support. > Is there something like this? > > Compilers that conform to the C++0x specification will define the macro __cplusplus with the value 201103L. Compilers that do not conform to the C++0x specification are not constrained by the C++0x specification (duh), but, hopefully, won't do that. -- Pete Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The Standard C++ Library Extensions: a Tutorial and Reference ( www.petebecker.com/tr1book) [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next — Previous in thread | Next in thread | Find similar
Checking C++0X support Helmut Jarausch <jarausch@igpm.rwth-aachen.de> - 2011-04-11 13:28 -0600 Re: Checking C++0X support Pete Becker <pete@versatilecoding.com> - 2011-04-12 13:09 -0600 Re: Checking C++0X support =3D?UTF-8?B?RGFuaWVsIEtyw7xnbGVy?=3D <daniel.kruegler@googlemail.com> - 2011-04-12 13:10 -0600 Re: Checking C++0X support CornedBee <wasti.redl@gmx.net> - 2011-04-12 13:11 -0600
csiph-web