Boost logo

Boost :

From: James Dennett (jdennett_at_[hidden])
Date: 2001-05-31 18:52:28


jbandela_at_[hidden] wrote:
>
> Gary,
> My responses are below the questions/comments.
>
> > file: tokenizer_policy.hpp
> > fns : boost::tokenizer_policy::dereference and increment, both have
> a
> > statement
> > "using namespace std;"
> > but I don't see any calls to functions from that namespace. What am
> I
> > missing here? Or is this leftover junk? (I did see the comment
> that "assert"
> > was sometimes, global, but I thought it was always a MACRO. hence no
> > namespace issues are possible.)
> >
>
> I believe that tokenizer_policy::dereference and increment have
> assert(b.valid_). I believe if you include cassert, assert is in
> namespace std. If someone knows differently about assert, I would
> appreciate being enlightened.

17.4.1.2/5 says that assert must be a macro, so it cannot
live in a namespace.

-- James Dennett


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