This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: RFC std::ignore
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 11 Jun 2010 13:08:38 +0200
- Subject: Re: RFC std::ignore
- References: <AANLkTik1s-NEWfEs-84w9LIGfxXh2Ydz_b9q-iKiFd4J@mail.gmail.com>
On 06/05/2010 09:18 PM, Jonathan Wakely wrote:
> The FCD requires std::ignore to be a const instance of some
> unspecified type, which the patch below implements by making
> _Swallow_assign::operator= work on const objects.
>
> The unnamed namespace is not needed because namespace-scope const
> objects are static by default.
>
> Any objections? Are there any ABI issues?
>
I think your patch is Ok. I would suggest regtesting it and committing.
Paolo.