[LC++]static const char*
Roberto Diaz
roberto at vivaldi.dhis.org
Fri Dec 14 07:56:05 UTC 2001
> > optimizations perfomed on integer constants?), and the correct way
> > should be:
> It's not because of optimization - AFAIR the c++ standard allows for
> in-class static const member initialization as far as they are of an
> integral type. IMO this is why the example works with int and doesn't
> work with char*.
Ok.. anyway I see it is dangerous to define static const members that you want
to initialize in order to have something similar to C-style #define..
I am using namespaces.. no problems there... or am I wrong too?
--
Saludos
Roberto Díaz <roberto at vivaldi.dhis.org>
PLEASE HELP SAVE faqs.org!
http://www.faqs.org/save_faqs-org.html
More information about the tuxCPProgramming
mailing list