नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
non-existent member function 'function' specified as friend (member function signature does not match any overload)
Remarks
A function specified as a friend was not found by the compiler.
Example
The following example generates C2245:
// C2245.cpp
// compile with: /c
class B {
void f(int i);
};
class A {
int m_i;
friend void B::f(char); // C2245
// try the following line instead
// friend void B::f(int);
};
void B::f(int i) {
A a;
a.m_i = 0;
}