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 C2860

'void' cannot be an argument type, except for '(void)'

Type void cannot be used as an argument type with other arguments.

Example

void profunc1(void, int i);    // error C2860
void profunc2(int i, void);    // error C2860
void profunc3(int, void);      // error C2860
void profunc4(void, ...);      // error C2860
void profunc5(..., void);      // error C2059
void func6(int i, void) {}     // error C2860
void func7(int, void) {}       // error C2860
void func8(void, ...) {}       // error C2860
void func9(..., void) {}       // error C2059
void func10(void) {}           // OK