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 C2710

cannot delete a pointer to a const object

You cannot use the delete operator on a pointer to a const object.

Example

const int* pci;
const int i = 0;
void main()
{
   pci = &i;
   delete pci;  // error, pci points to a const
}