Compiler Error C2711 (Windows CE 5.0)
cannot delete a pointer to a function
You cannot use the delete operator on a pointer to a function.
The following example shows how this error might occur.
void (*pf)();
void func();
void main()
{
pf = func;
delete pf; // error, pf points to a function
}
Send Feedback on this topic to the authors