This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
RE: [Patch] (Partial) fix for libstdc++/14078
- From: Pétur Runólfsson <peturr02 at ru dot is>
- To: "Paolo Carlini" <pcarlini at suse dot de>,"libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 11 Feb 2004 11:44:28 -0000
- Subject: RE: [Patch] (Partial) fix for libstdc++/14078
Paolo Carlini wrote:
> Better results, working around deficiencies of the current inliner
> (http://gcc.gnu.org/ml/libstdc++/2003-02/msg00302.html) could be
> obtained by adding const qualifiers to the signatures.
But a top level const qualifier on a formal parameter is *not* part
of the signature, see 13.1. The only effect it has is to make the
parameter const within the function body. In other words, it's
equivalent to declaring a local variable const.
Regards,
Petur