नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
operator 'operator': all operands must have the same enumeration type
Remarks
When using operators on enumerators, both operands must be of the enumeration type. For more information, see How to: Define and consume enums in C++/CLI.
Example
The following example generates C3063 and shows how to fix it:
// C3063.cpp
// compile with: /clr
enum class E { a, b } e, mask;
int main() {
if ( ( e & mask ) != 0 ) ; // C3063 no operator!= (E, int)
if ( ( e & mask ) != E() ) // OK
;
}