This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH. libstdc++] Use the correct C++14 __cplusplus value (201402L). Added C++1z to the preprocessor.
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Ed Smith-Rowland <3dw4rd at verizon dot net>
- Cc: Paolo Carlini <paolo dot carlini at oracle dot com>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 15 Sep 2014 12:23:26 +0100
- Subject: Re: [PATCH. libstdc++] Use the correct C++14 __cplusplus value (201402L). Added C++1z to the preprocessor.
- Authentication-results: sourceware.org; auth=none
- References: <53F91799 dot 2070902 at verizon dot net> <53FC4524 dot 9090606 at oracle dot com> <20140826085206 dot GB2842 at redhat dot com> <53FC4B4E dot 1040802 at oracle dot com> <5416AE9E dot 6040400 at oracle dot com> <5416CA49 dot 3090900 at verizon dot net>
On 15/09/14 07:15 -0400, Ed Smith-Rowland wrote:
The new libraries are safely tucked away in experimental behind
#if __cplusplus <= 201103L
# include <bits/c++14_warning.h>
#else
*** Jonathan: <filesystem> uses:
#if __cplusplus < 201103L
# include <bits/c++0x_warning.h>
#else
and should probably eventually be like the others.
My Filesystem implementation works fine in C++11, I see no reason to
force C++14 usage when it isn't needed.