This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: ought to be a bug? gcc4 STL (stl_algo.h _S_threashold, enum vs. static const int)


On Sunday 10 April 2005 8:43 am, Christian Parpart wrote:
> -  enum { _S_threshold = 16 };
> +  static const int _S_threshold = 16;

ok, the original enum is valid C++. but why could gcc4 throw that warning?

Thanks in advance,
Christian Parpart.

-- 
Netiquette: http://www.ietf.org/rfc/rfc1855.txt
 09:09:58 up 17 days, 22:16,  0 users,  load average: 0.06, 0.13, 0.09

Attachment: pgp00000.pgp
Description: PGP signature


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