From -7025816574574737225
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,e3e6d7e8b0bba763
X-Google-Attributes: gidf78e5,public
Path: g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.159.246.34.MISMATCH!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: nesotto@cs.auc.dk ("Thorsten Ottosen")
Newsgroups: comp.std.c++
Subject: Re: function template overloading and name lookup
Date: Thu, 10 Jun 2004 17:42:42 +0000 (UTC)
Lines: 25
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <40c7b9e5$0$3036$afc38c87@news.optusnet.com.au>
References: <40bdb74c$0$31680$afc38c87@news.optusnet.com.au>     <mnj0c0tm8t11h7iltfcvoq2n2rh6466gqs@4ax.com>     <40c145b3$0$31676$afc38c87@news.optusnet.com.au>     <j7g8c0tdf0ti5edkhbu0rfuehbqkhpo06i@4ax.com>     <40c67f83$0$8987$afc38c87@news.optusnet.com.au> <inidc097b21jsua88l8249g9qfulcv6tmp@4ax.com>
X-Trace: mail2news.demon.co.uk 1086889362 15268 10.0.0.1 (10 Jun 2004 17:42:42 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Thu, 10 Jun 2004 17:42:42 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.12)
	id 1BYTZZ-0003y4-00
	for mail2news@news.news.demon.net; Thu, 10 Jun 2004 17:42:42 +0000
X-Received: from mulga.cs.mu.OZ.AU (localhost [127.0.0.1]) by mulga.cs.mu.OZ.AU with ESMTP
	id i5AHgdB5006360; Fri, 11 Jun 2004 03:42:39 +1000 (EST)
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id i5AHgdhN006351;
	Fri, 11 Jun 2004 03:42:39 +1000 (EST)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Path: comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Delivered-To: std-c++@ucar.edu
X-Newsgroups: comp.std.c++
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
X-Spam-Checker-Version: SpamAssassin 2.60-mulga_r1 (1.212-2003-09-23-exp) on 
	mulga.cs.mu.OZ.AU
X-Spam-Level: 
X-Spam-Status: No, hits=-2.5 required=5.2 tests=AWL,BAYES_00,PRIORITY_NO_NAME 
	autolearn=no version=2.60-mulga_r1
Xref: g2news1.google.com comp.std.c++:760


"tom_usenet" <tom_usenet@hotmail.com> wrote in message news:inidc097b21jsua88l8249g9qfulcv6tmp@4ax.com...

| In your code above, the foo functions are in the global namespace, and
| both X and Y are too, so ADL would work fine (the global namespace
| would be searched at the point of instantiation. I expect the real
| code involves namespaces, but as long as you put the foo functions in
| the same namespace as an associated namespace of one of their
| parameters, they should be found by ADL. There's only a major problem
| if one of the foo's has parameters whose only associated namespace is
| std (as with the deque example).

yep, and each header had a parameter from the std namespace. :-)

br

Thorsten


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



