NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2246

'identifier' : illegal static data member in locally defined class

A member of a class, structure, or union with local scope is declared static.

Example

void func( void )
{
   class A
   {
 static int i;    // error, i is local to func
   };
};
class B
{
   static int i;       // OK
};