नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'identifier' : constructor initializer lists are only allowed on constructor definitions
Remarks
A base class initializer list is used on the definition of a function that is not a constructor.
Example
The following example generates C2550:
// C2550.cpp
// compile with: /c
class C {
public:
C();
};
class D : public C {
public:
D();
void func();
};
void D::func() : C() {} // C2550
D::D() : C() {} // OK