This topic has not yet been rated - Rate this topic

Compiler Error C3176

'type' : cannot declare local value type

A class can only be declared as a value type at global scope.

The following sample generates C3176.

// C3176.cpp
// compile with: /clr
int main () {
   enum class C {};   // C3176
}
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Advertisement