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 C2711

cannot delete a pointer to a function

You cannot use the delete operator on a pointer to a function.

Example

void (*pf)();
void func();
void main()
{
   pf = func;
   delete pf;   // error, pf points to a function
}