Errore del compilatore C2549
La conversione definita dall'utente non può specificare un tipo restituito
L'esempio seguente genera l'errore C2549:
// C2549.cpp
// compile with: /c
class X {
public:
int operator int() { return value; } // C2549
// try the following line instead
// operator int() { return value; }
private:
int value;
};