Compiler Warning (level 1) C4813
'function' : a friend function of a local class must have been previously declared
A friend function in an inner class was not declared in the outer class.
The following sample generates C4813:
// C4813.cpp
// compile with: /W1 /LD
void MyClass()
{
// void func();
class InnerClass
{
friend void func(); // C4813 uncomment declaration above
};
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for