Condividi tramite


Errore del compilatore C2574

'function': non può essere dichiarato statico

Osservazioni:

Non è possibile dichiarare costruttoristatic.

Esempio

L'esempio seguente genera l'errore C2574:

// C2574.cpp
// compile with: /c
struct S
{
    static S() {}   // C2574

    // Try the following line instead:
    // S() {}
};