This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Integration of parallel standard algorithms for c++17
- From: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- To: Thomas Rodgers <trodgers at redhat dot com>
- Cc: 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:09:03 +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>
On Wed, 20 Mar 2019 at 22:05, Thomas Rodgers <trodgers@redhat.com> wrote:
> > +#if __cplusplus < 201703L
> > +# include <bits/c++0x_warning.h>
> > +#else
> >
> > 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
>
> ?
No. Such a value does not exist. He means what he wrote; these
parallel algos should be available starting with C++17 and in newer
versions as well, and they should just not-exist in earlier versions,
without a header warning.