Visual Studio 2013:C ++:枚举'|'的Intellisense错误

时间:2015-09-25 17:19:53

标签: c++ visual-studio-2010 visual-studio-2013 enums intellisense

我有一个枚举如下:

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错误,我想解决这个问题。难道我做错了什么?

0 个答案:

没有答案