Compiler Error C2711 (Windows CE 5.0)

Send Feedback

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

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.