Christof Petig <[EMAIL PROTECTED]> writes:
> Perhaps the namepace of the first argument determines the namespace
> searched for the operator ?
All arguments determine the namespaces search for functions. This is
called Koenig lookup (after Andrew Koenig, inventor of this
mechanism), or argument-d
On Mon, Jun 17, 2002 at 04:37:11PM +0200, Christof Petig wrote:
> Christof Petig wrote:
> > The following code does not compile with g++-3.0 and g++-3.1, but it
> > does with g++-2.95.4. What is wrong (std:: is not missing!)?
>
> Oh, std:: was missing - in a way ...
>
> std::find only looks in n
Christof Petig wrote:
The following code does not compile with g++-3.0 and g++-3.1, but it
does with g++-2.95.4. What is wrong (std:: is not missing!)?
Oh, std:: was missing - in a way ...
std::find only looks in namespace std:: for an operator==, if I specify
it inside namespace std { ... } , it
>Submitter-Id: net
>Originator:
>Organization: LRDE
>Confidential: no
>Synopsis: ICE when declaring a function already defined as a friend method of
>a template class
>Severity: serious
>Priority: medium
>Category: c++
>Class: ice-on-legal-code
>Release: 3.1.1 20020606 (Debian prerel
>Submitter-Id: net
>Originator:
>Organization: LRDE
>Confidential: no
>Synopsis: ICE when declaring a function already defined as a friend method of
>a template class
>Severity: serious
>Priority: medium
>Category: c++
>Class: ice-on-legal-code
>Release: 3.1.1 20020606 (Debian prerel
tags 150142 + patch
thanks
Hi. Below is a small patch that seems to fix the problem.
--- /usr/bin/gcj-wrapper-3.1Tue Jun 4 01:21:17 2002
+++ gcj-wrapper-3.1 Mon Jun 17 18:20:27 2002
@@ -11,7 +11,12 @@
fi
case "$arg" in
--classpath|-encoding|-bootclasspath|-extdirs)
+
Processing commands for [EMAIL PROTECTED]:
> tags 150142 + patch
Bug#150142: gcj-3.1: gcj-wrapper-3.1 problem with -classpath
Tags added: patch
> thanks
Stopping processing here.
Please contact me if you need assistance.
Debian bug tracking system administrator
(administrator, Debian Bugs datab
The following code does not compile with g++-3.0 and g++-3.1, but it
does with g++-2.95.4. What is wrong (std:: is not missing!)?
#include
#include
#include
typedef std::string s_t;
typedef std::pair pair_t;
bool operator==(const pair_t &a,const s_t &b)
{ return a.first==b;
}
int main()
{ st
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
unsubscribe
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
10 matches
Mail list logo