Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2004-07-27 13:43:16


Thorsten Ottosen wrote:
> Dear All,
>
> I've put meself in a funny situation. I have a class with an begin() end() members, but I wan't to call boost::begin() boost::end()
> without the boost:: prefix so ADL is functional. Can that be done?
>

At the point of use, bring boost::begin and boost::end into local scope
with using declarations. That should hide the versions in class scope.

-- 
Eric Niebler
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