|
Boost : |
From: Douglas Gregor (gregod_at_[hidden])
Date: 2001-09-27 08:36:58
On Thursday 27 September 2001 09:10, you wrote:
> Unfortunately, ignore is already using form one:
> Here is a transcript of the (original) code:
>
> // "ignore" allows tuple positions to be ignored when using "tie".
> namespace {
> detail::tuples::swallow_assign ignore;
> }
>
> Only a explicit 'extern' keyword would solve the problem, but then I would
> have to define the variable somewhere else. Not a good thing to do.
There's nothing really wrong with this solution, I would just like to see a
common solution for all of Boost so that users don't need to poke around the
library source.
> > > BTW: In which namespace is 'ignore' supposed to go? I'm confused... (or
> > > Borland is confused because it puts ignore in boost)
> >
> > It should be in an anonymous namespace inside boost::tuples. That way one
> > "copy" exists per translation unit, so we don't have to deal with being
> > careful to define it in only one translation unit.
>
> "boost::tuples" was what I expected, but it is in "boost" (without
> 'tuples') But that's fine!!!
> I just got confused because in the review version I was familiar with
> everything went into boost::tuples, but in this release, it is in 'boost'.
The names have moved around a bit. 'ignore' is back in boost::tuples now.
Doug
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk