Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'identifier' : illegal static data member in locally defined class
Remarks
A member of a class, structure, or union with local scope is declared static.
Example
The following example generates C2246:
// C2246.cpp
// compile with: /c
void func( void ) {
class A { static int i; }; // C2246 i is local to func
static int j; // OK
}