Export (0) Print
Expand All
Expand Minimize
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)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.