Patchwork C++ PATCH to add -std=c++11 ??

login
register
mail settings
Submitter Paolo Carlini
Date Oct. 30, 2011, 1:12 a.m.
Message ID <4EACA483.1010505@oracle.com>
Download mbox | patch
Permalink /patch/122583/
State New
Headers show

Comments

Paolo Carlini - Oct. 30, 2011, 1:12 a.m.
Hi,

today, by chance, I noticed this:

   http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01756.html

and it occurred to me that maybe it's time to do this?

Thanks,
Paolo.

//////////////////
2011-10-30  Paolo Carlini  <paolo.carlini@oracle.com>

	* c.opt: Add -std=c++11.
Paolo Carlini - Oct. 30, 2011, 1:15 a.m.
On 10/30/2011 02:12 AM, Paolo Carlini wrote:
> Hi,
>
> today, by chance, I noticed this:
>
>   http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01756.html
>
> and it occurred to me that maybe it's time to do this?
... or maybe we want, at the same time, to tweak a bit the description 
of c++0x?

Paolo.

Patch

Index: c.opt
===================================================================
--- c.opt	(revision 180671)
+++ c.opt	(working copy)
@@ -1182,6 +1182,10 @@  become a part of the upcoming ISO C++ standard, du
 extensions enabled by this mode are experimental and may be removed in
 future releases of GCC.
 
+std=c++11
+C++ ObjC++ Alias(std=c++0x)
+Conform to the ISO 2011 C++ standard
+
 std=c1x
 C ObjC
 Conform to the ISO 201X C standard draft (experimental and incomplete support)