नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'enum' : forward declaration of enum type is not allowed
Remarks
The compiler no longer supports forward declaration of a managed enumeration.
Forward declaration of an enum type is not allowed under /Za.
Example
The following example generates C2599:
// C2599.cpp
// compile with: /clr /c
enum class Status; // C2599
enum class Status2 { stop2, hold2, go2};
ref struct MyStruct {
// Delete the following line to resolve.
Status m_status;
Status2 m_status2; // OK
};
enum class Status { stop, hold, go };