Subject: Re: [boost] Interest check: constant input matching manipulator
From: Eugene Wee (crystalrecursion_at_[hidden])
Date: 2009-04-10 08:12:51
On Thu, Apr 9, 2009 at 10:17 PM, Stewart, Robert <Robert.Stewart_at_[hidden]> wrote:
> Doh! Â I was too focused on other aspects to think about the need for ADL to find an operator overload. Â For that to work, of course, the operators must be in namespace std and that's undefined due to 18.104.22.168/1. Â IOW, I did miss something.
Of course, that means that Scott McMurray's idea is still applicable
as an addition to the C++ standard :)
But... I have been trying to figure out exactly why "such an overload
is legal but useless because it won't be found by ADL". What exactly
are the applicable lookup rules here? Simple examples based on Rob's
suggestion and adaptations of my own manipulator code do seem to work,
and I had the impression that ADL is an extension of unqualified name
lookup (but I am also aware, with a rather hazy view, that the lookup
rules for templates are a little different).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk