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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: pgpYZlTdokF8B.pgp
Description: PGP signature


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux