नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'class' : constructor syntax missing formal parameters
Remarks
The constructor for the class does not specify any formal parameters. The declaration of a constructor must specify a formal parameter list. The list can be empty.
To fix this issue, add a pair of parentheses after the declaration of class::*class.
Example
The following example shows how to fix C2461:
// C2461.cpp
// compile with: /c
class C {
C::C; // C2461
C::C(); // OK
};