Boost logo

Boost :

From: Terje Slettebø (tslettebo_at_[hidden])
Date: 2003-01-07 19:37:33


>From: "Paul Mensonides" <pmenso57_at_[hidden]>
>
> > Just my 2 cents.
>
> Make that 3 cents...
>
> In summary, enumerations are distinct types and therefore can interfere
with
> the rest of the language. Particularly, constant expressions,
overloading,
> operator overloading, template type deduction, etc.. Personally, I think
> that is a strong case *against* using enumerations.

I agree.

And since there are techniques for making out-of-class definitions easier
(and automatic), which may be instantiated if needed, like you showed, then
static const seems clearly best.

Regards,

Terje


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