नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
using-declaration causes a multiple declaration of 'class::identifier'
Remarks
The declaration causes the same item to be defined twice.
This error is obsolete in Visual Studio 2022 and later versions.
Example
The following example generates C2875:
// C2875.cpp
struct A {
void f(int*);
};
struct B {
void f(double*);
};
struct AB : A, B {
using A::f;
using A::f; // C2875
using B::f;
};