From: David Abrahams (dave_at_[hidden])
Date: 2006-06-14 17:25:01
"Peter Dimov" <pdimov_at_[hidden]> writes:
> Ion Gaztañaga wrote:
>> This compiles fine with with VC 7.1. g++ fails with:
>> "no matching function for call to 'static_pointer_cast(dummy::smart_
> This means that g++ doesn't do ADL for static_pointer_cast<int>.
Nor does any other compiler I know of, IIUC.
> There's an
> issue about it by Gabriel Dos Reis:
> but it's still open and contains no further notes, so it isn't clear whether
> g++ is right or not.
Well, if foo<bar>(...) starts doing ADL it's going to break a lot of
code. I certainly leave off qualification when using that notation,
knowing that ADL is avoided.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk