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 C2835

user-defined conversion 'type' takes no formal parameters

User-defined type conversions cannot take formal parameters. The following sample generates C2835:

class A {
   public:
      char v_char;

      A() { 
         v_char = 'A'; 
      };
      operator char(char a) {      // C2825, remove "char a" to resolve
         return v_char + 1; 
      };
};


int main() {
   A a;
}