This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] Inline Variables for the Standard Library (p0607r0)
- From: Tim Song <t dot canens dot cpp at gmail dot com>
- To: Daniel Krügler <daniel dot kruegler at gmail dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 11 Mar 2017 15:23:43 -0500
- Subject: Re: [Patch] Inline Variables for the Standard Library (p0607r0)
- Authentication-results: sourceware.org; auth=none
- References: <CAGNvRgBfD=17f1ZZYAxDzUG0+ZzqNkkSvqAYLR=OVWYYNykTvw@mail.gmail.com> <CAGNvRgCpc9J81-aTTNQWNQws9ixqzq_pcMnrbk6nf6L-jAQoAA@mail.gmail.com>
On Sat, Mar 11, 2017 at 1:32 PM, Daniel Krügler
<daniel.kruegler@gmail.com> wrote:
> This patch applies inline to all namespace scope const variables
> according to options A and B2 voted in during the Kona meeting, see:
>
> http://wiki.edg.com/pub/Wg21kona2017/StrawPolls/p0607r0.html
>
> During that work it has been found that std::ignore was not declared
> constexpr (http://cplusplus.github.io/LWG/lwg-defects.html#2773),
> which was fixed as well.
Just adding constexpr to std::ignore does ~nothing. The assignment
operator needs to be made constexpr too; there is really no other
reason to use std::ignore.