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 C2276

'operator' : illegal address of bound member function expression

You cannot take the address of a virtual function.

Example

class A
{
public:
   virtual int func();
} a;
int (*pf)() = &a.func;   // error
class B
{
public:
   void mf()
   {
  &this->mf;       //error
   }
};