Boost logo

Boost :

From: Paul Mensonides (pmenso57_at_[hidden])
Date: 2002-04-24 17:10:11


From: "Giovanni Bajo" <giovannibajo_at_[hidden]>
> > He wants to detect 'value' not type. I'm wasn't sure if he justed wanted
> to
> > detect if a available constant value of a certain name was present or a
> direct
> > enumerator only. So, while I don't really see the utility of the entire
> thing,
> > this *will* detect if a type has a nested enumerator 'NAME':
>
> Actually, detecting a constant would have been enough. When I write a
> template, if there are several "user-configurable" options, instead of this:

That is what I assumed, but it was fun to make the full-scale version. In
theory, you could use an enumerator vs. a static constant as an 'extra' boolean
value--i.e. whether it was one or the other. Of course, usage like that would
be seriously non-obvious. :)

Paul Mensonides


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