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 C2245

nonexistent function 'Identifier' specified as friend

Identifier is not a function, so it can be a friend.

Example

class C
{
public:
   int i;                  // i is not a function
   void func();
};
class S
{
public:
   friend void C::i();     // error
   friend void C::func();  // OK
};