This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Integration of parallel standard algorithms for c++17
- From: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Thomas Rodgers <trodgers at redhat dot com>, Jonathan Wakely <jwakely at redhat dot com>, "libstdc++" <libstdc++ at gcc dot gnu dot org>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 20 Mar 2019 22:15:53 +0200
- Subject: Re: [PATCH] Integration of parallel standard algorithms for c++17
- References: <xkqek1lksswb.fsf@trodgers.remote.f27> <1050db8c-2774-2210-dd39-12caa9bdb564@redhat.com> <20190207132629.GH17805@redhat.com> <xkqesgvspvpw.fsf@trodgers.remote.f27> <20190319202615.GK943@redhat.com> <xkqe4l7xpb0p.fsf@trodgers.remote.f27> <20190320201342.GM7611@tucnak> <20190320201454.GN7611@tucnak>
On Wed, 20 Mar 2019 at 22:15, Jakub Jelinek <jakub@redhat.com> wrote:
>
> On Wed, Mar 20, 2019 at 09:13:42PM +0100, Jakub Jelinek wrote:
> > On Wed, Mar 20, 2019 at 01:05:10PM -0700, Thomas Rodgers wrote:
> > > > We only give that warning for C++11 headers, but for anything newer it
> > > > should be just:
> > > >
> > > > +#if __cplusplus >= 201703L
> > >
> > > Did you mean
> > >
> > > +#if __cplusplus >= 201603L
> >
> > I guess so:
> > http://eel.is/c++draft/support.limits.general
> > as well as
> > http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0941r2.html
> > says:
> > __cpp_lib_parallel_algorithm 201603L <algorithm> <numeric>
>
> Sorry, ignore my mail.
That's fine - that's the value of that particular feature-testing
macro, not the value of __cplusplus. :)