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.
'function' : a friend function cannot be defined within a local class
You can declare but not define a friend function in a local class.
The following sample generates C2689:
// C2689.cpp
// compile with: /c
void g() {
void f2();
class X {
friend void f2(){} // C2689
friend void f2(); // OK
};
}