This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Static members in templates in egcs-1.0.1



> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]