warning:nonstandard extension used enum

自己开发中遇到了这个warning。到MSDN一搜,原来是这样。http://msdn.microsoft.com/en-us/library/ms173704.aspx 

Compiler Warning (level 1) C4482

Error Message

nonstandard extension used: enum 'enum' used in qualified name

When you refer to an enum inside a type, you do not need to specify the name of the enum.

例如:

enum typelists{a,b} 

int i = a;//OK

int j = typelists::b;//warning 

 

posted on 2009-12-11 11:19  非常笑  阅读(2220)  评论(0编辑  收藏  举报

导航