नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'class' : class has no constructors
Remarks
The class, structure, or union has no constructor with a parameter list that matches the parameters being used to instantiate it.
A class must be fully declared before it can be instantiated.
Example
The following example generates C2514:
// C2514.cpp
// compile with: /c
class f;
class g {
public:
g (int x);
};
class fmaker {
f *func1() {
return new f(2); // C2514
}
g *func2() {
return new g(2); // OK
}
};