我有一个枚举如下:
enum myFilter
{
myFilter_None = 0,
myFilter_Line = 1,
myFilter_ArcCCW = 2,
myFilter_ArcCW = 4,
myFilter_Circle = 8,
myFilter_Arc = myFilter_ArcCCW | myFilter_ArcCW,
myFilter_ALL = myFilter_Line | myFilter_Arc | myFilter_Circle
};
这在VS 2010中编译得很好。 当我将其移植到VS 2013时,我收到此错误。
IntelliSense: expression must have a constant value
|
和myFilter_Arc
中的myFilter_ALL
会引发错误
虽然链接成功,因为它只是Intellisense错误,我想解决这个问题。难道我做错了什么?