Muistiinpano
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää kirjautua sisään tai vaihtaa hakemistoja.
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää vaihtaa hakemistoja.
user-defined conversion cannot specify a return type
Example
The following example generates 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;
};