diff mbox

[C++] Define __cplusplus == 201300L for -std=c++1y

Message ID 517A5E6E.4090803@oracle.com
State New
Headers show

Commit Message

Paolo Carlini April 26, 2013, 11:01 a.m. UTC
Hi,

On 04/26/2013 12:57 PM, Daniel Krügler wrote:
> Jonathan recently submitted an LWG issue for this (not yet part of the 
> available list). I'm in the process to add the new issue within the 
> following days. He's essentially suggesting to remove get() from C++14.
Thanks Daniel. Then, it seems safe to do in v3 the same as <stdio.h>, to 
enable testing -std=c++1y. Do you have already a DR # which I can write 
in a comment?

Thanks!

Paolo.

//////////////////////

Comments

Daniel Krügler April 26, 2013, 11:02 a.m. UTC | #1
2013/4/26 Paolo Carlini <paolo.carlini@oracle.com>:
> Hi,
>
>
> On 04/26/2013 12:57 PM, Daniel Krügler wrote:
>>
>> Jonathan recently submitted an LWG issue for this (not yet part of the
>> available list). I'm in the process to add the new issue within the
>> following days. He's essentially suggesting to remove get() from C++14.
>
> Thanks Daniel. Then, it seems safe to do in v3 the same as <stdio.h>, to
> enable testing -std=c++1y. Do you have already a DR # which I can write in a
> comment?

I have no number yet, because there are several issues in the
pipeline. I'll  send it to you once I have it.

- Daniel

> Thanks!
>
> Paolo.
>
> //////////////////////
Paolo Carlini April 26, 2013, 11:03 a.m. UTC | #2
On 04/26/2013 01:02 PM, Daniel Krügler wrote:
> I have no number yet, because there are several issues in the 
> pipeline. I'll send it to you once I have it.
Ok, thanks!

Paolo.
diff mbox

Patch

Index: include/c_global/cstdio
===================================================================
--- include/c_global/cstdio	(revision 198333)
+++ include/c_global/cstdio	(working copy)
@@ -69,7 +69,9 @@ 
 #undef ftell
 #undef fwrite
 #undef getc
-#undef gets
+#if __cplusplus <= 201103L
+# undef gets
+#endif
 #undef perror
 #undef printf
 #undef putc
@@ -116,7 +118,9 @@ 
   using ::fwrite;
   using ::getc;
   using ::getchar;
+#if __cplusplus <= 201103L
   using ::gets;
+#endif
   using ::perror;
   using ::printf;
   using ::putc;
Index: include/c_std/cstdio
===================================================================
--- include/c_std/cstdio	(revision 198333)
+++ include/c_std/cstdio	(working copy)
@@ -70,7 +70,9 @@ 
 #undef fwrite
 #undef getc
 #undef getchar
-#undef gets
+#if __cplusplus <= 201103L
+# undef gets
+#endif
 #undef perror
 #undef printf
 #undef putc
@@ -117,7 +119,9 @@ 
   using ::fwrite;
   using ::getc;
   using ::getchar;
+#if __cplusplus <= 201103L
   using ::gets;
+#endif
   using ::perror;
   using ::printf;
   using ::putc;