Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'function': cannot be declared static
Remarks
Neither constructors nor destructors can be declared static
.
Example
The following example generates C2574:
// C2574.cpp
// compile with: /c
struct S
{
static S() {} // C2574
// Try the following line instead:
// S() {}
};