This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/4168 is not a bug
- To: dominik dot strasser at mchp dot siemens dot de, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Subject: Re: libstdc++/4168 is not a bug
- From: Philip Martin <philip_martin at ntlworld dot com>
- Date: 30 Aug 2001 20:47:36 +0100
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4168&database=gcc
This is not a bug, both versions of operator() are required. This is
resolution of issue 109. See
http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/lwg-active.html#109
To get your sample code to work change
struct CmpStrInt : public binary_function<const StrInt, const string, bool>
{
bool operator()(const StrInt& l, const string& r) const;
}
to
struct CmpStrInt : public binary_function<StrInt, string, bool>
{
bool operator()(const StrInt& l, const string& r) const;
}
Philip