Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-07-28 05:48:39


"Daniel James" <daniel_at_[hidden]> wrote in message news:pan.2004.07.28.00.44.38.578992_at_calamity.org.uk...
| On Wed, 28 Jul 2004 09:24:07 +1000, Thorsten Ottosen wrote:
|
| > "Eric Niebler" <eric_at_[hidden]> wrote in message
| > news:4106A244.2020800_at_boost-consulting.com...
| > |
| > | Thorsten Ottosen wrote:
| > | >
| > | > 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.
| >
| > ok, and how do you do that in an initializer list? :-)
|
| You put it into a separate function?

yes, of course...doh. I wasn't thinking last night :-)

| So, what's the flaw in the plan?

nothing.

Thanks!

Thorsten


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