Compiler Error C3069
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C3069.
operator': not allowed for enumeration type
An operator is not supported for CLR enumerations. For more information, see Using Operators and Enumerations.
The following sample generates C3069:
// C3069.cpp
// compile with: /clr
enum struct E { e1 };
enum F { f1 };
int main() {
E e = E::e1;
bool tf;
tf = !e; // C3069
// supported for native enums
F f = f1;
tf = !f;
}
Show: