Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2006-07-11 11:30:26


"me22" <me22.ca_at_[hidden]> wrote
> On 7/11/06, Andy Little <andy_at_[hidden]> wrote:
>> "me22" <me22.ca_at_[hidden]> wrote
>> > If foo(bar,a,b) could always be written as bar.foo(a,b)
>> >
>> That would break some of my code FWIW
>>
> In what way? Would it still break with a new overload resolution rule
> that a member function called as a member function is a better match
> than a non-member function called as a member function?

So when I call bar.foo(a,b) I may be getting foo.bar(a,b) or if I forgot to
define it or it doesnt match?, maybe something ::foo(...)?

It sounds to me like the ADL issue all over again FWIW.

regards
Andy Little


Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk