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.
//////////////////////
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;