Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-12-29 09:33:05


Jonathan Turkanis wrote:
> The occurence of boost::io::put in the above example has to be
> qualified, since otherwise it will refer to the member function being
> defined.

What I have to say has nothing to do with namespaces or directory placement,
but...

Given that in the documentation you speak of user-defined overloads of
boost::io::read et al, it might be worthwhile to point out that two-phase
lookup will not see these user overloads. If you want to have an overload
customization point in a template, you have to use an unqualified call. And
choose the identifiers wisely. :-)


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