'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() { }