Boost logo

Boost :

From: Gabriel Dos Reis (gdr_at_[hidden])
Date: 2003-01-09 09:29:30


Daniel Frey <daniel.frey_at_[hidden]> writes:

| > Yes, a smarter compiler may do better, but such smarter compilers are
| > quite rare :-)
| > Yes, the thingy ends up in the link map (as a local symbol).
|
| Just to make sure: Do you "vote" in favor of enums?

I'm a long term pro-enum (mostly because for the meta programming
stuff I had to do, it works very well), but I do understand the
potential drawbacks raised by the pro-'static const' camp.

| I have seen problems
| with 'static const ...', but I have never seen problems with enums
| (although they theoretically exist). Both have their drawbacks, it seems
| we have to choose the petty evil...

Yeah, that happens to be my opinion as well for the time I'm writing
and using "advanced" template programs.

-- Gaby


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