Victor Bazarov
10/14/2008 5:21:00 PM
Ioannis Vranos wrote:
> Corrected:
> [..]
>
> Regarding classes, you can either use static constants or (usually
> better) enums.
Well, there aren't double or string enums, so... The difference between
the class [non-integral] constants and the namespace ones is that the
class constants have to be declared in the class and *defined* in some
translation unit, while the namespace constants can be defined in the
header (which means they will be duplicated in every translation unit
that includes the header), which is OK because they have internal
linkage (unless you specify otherwise).
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask