public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Pete Ratzlaff <rpete@legs.harvard.edu>
To: paolo@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: libstdc++/5133: Problems with toupper
Date: Fri, 22 Nov 2002 14:46:00 -0000	[thread overview]
Message-ID: <20021118055604.11596.qmail@sources.redhat.com> (raw)

The following reply was made to PR libstdc++/5133; it has been noted by GNATS.

From: Pete Ratzlaff <rpete@legs.harvard.edu>
To: Martin Sebor <sebor@roguewave.com>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/5133: Problems with toupper 
Date: Mon, 18 Nov 2002 00:50:16 -0500

 > > 
 > > I cannot see anything that keeps one from using the toupper/tolower
 > > from <cctype> with transform, and the fact that gcc won't allow it
 > > should be considered a bug.
 > 
 > Yes, but only if it's the only available function. The other comes
 > from <locale> which is probably indirectly #included by <iostream>.
 > 
 
 I had heard this argument before, for the case when both overloads from
 <locale> and <cctype> are in scope, but didn't know whether to believe
 it since no citations were ever shown. After digging around a bit (the
 template section of the standard is *dense*), I finally came across
 this:
 
 14.8.2.4
 
   16- A template-argument can be deduced from a pointer to function or
       pointer to member function argument if the set of overloaded
       functions does not contain function templates and at most one of a
       set of overloaded functions provides a unique match.
 
 So unless I'm misinterpretting, then your new explanation makes sense
 and gcc is conforming to the standard in this respect.
 
 Cheers,
 -Pete


             reply	other threads:[~2002-11-18  5:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-22 14:46 Pete Ratzlaff [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-11-22 13:48 Martin Sebor
2002-11-22  5:43 Phil Edwards
2002-11-22  5:41 Pete Ratzlaff
2002-11-22  5:11 Pete Ratzlaff
2002-10-31 16:08 paolo
2002-06-27 23:14 Christopher Currie
2001-12-17  8:06 Philip Martin
2001-12-16 17:46 Martin Sebor
2001-12-16 15:46 Peter Schmid
2001-12-16 13:53 paolo
2001-12-16 13:16 Peter Schmid

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021118055604.11596.qmail@sources.redhat.com \
    --to=rpete@legs.harvard.edu \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=paolo@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).