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 C2547

illegal cast of overloaded function

A pointer to a function is converted to an overloaded type. This is not allowed.

Example

int func();
int func( int );
( int (*)() )func;      // error, func is overloaded
int func2();
( void (*)() )func2;    // OK, func2 is not overloaded