This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Couple of new issues in mainline
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, Benjamin Kosnik <bkoz at redhat dot com>
- Date: Sun, 03 Dec 2006 18:07:42 -0800
- Subject: Re: Couple of new issues in mainline
- References: <45705BAB.4000207@suse.de>
Paolo Carlini wrote:
> I think that, for various reasons (the function is not exported + the
> type qualifier is indeed ignored), it's safe to simply remove the const
> qualifier, as in the below, which I'm finishing testing and mean to
> apply later today.
Just for the record: it's always safe to do remove the qualifier if you
get the warning, since the qualified is not part of the mangled name
anyhow. When the front-end says "ignored" it really means it -- it's as
if you never wrote the "const" in the first place.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713