Static members in templates in egcs-1.0.1
Joe Buck
jbuck@synopsys.com
Thu Jan 15 16:06:00 GMT 1998
> I've been trying to find out for a while: does the C++ spec allow you
> to define static consts in the class definition? Egcs & g++ do, but
> all the compilers I've tried on NT complain.
Yes (the standard does allow it), but it is a fairly recent change
(meaning that it isn't widely portable yet).
If you need your code to compile on a variety of C++ compilers I'm
afraid you can't use that feature yet.
More information about the Gcc
mailing list