Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'member' : a friend function may not be defined inside a class using a qualified name (it may only be declared)
A friend function was defined using a qualified name, which is not allowed.
The following sample generates C3060:
// C3060.cpp
class A {
public:
void func();
};
class C {
public:
friend void A::func() { } // C3060
// Try the following line and the out of class definition:
// friend void A::func();
};
// void A::func(){}