Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Warning (level 1) C4832

token 'token' is illegal after UDT 'type name'

A member of a UDT (user-defined type, such a class or struct) was qualified incorrectly. The compiler issues this warning when the qualification was specified incorrectly.

The following sample generates C4832:

// C4832.cpp
// compile with: /W1
struct A {
   enum { e };
};

int main() {
   return A.e;   // C4832 
   // try the following line instead
   // return A::e;
}

To fix this issue, use the correct syntax to specify the qualification:

// C4832.cpp
// compile with: /W1
struct A {
   enum { e };
};

int main() {
   return A::e;   // Qualify the member by using scope resolution
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.