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 C2270

'function' : modifiers not allowed on nonmember functions

A nonmember function is declared with const, volatile, or another memory-model modifier.

Example

void func1(void) const;     // error, nonmember function
// try the following declaration instead:
// void func1(void);
class CMyClass {
   public:
      void func2(void) const;  // OK
   };

void main() {
}