Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 550 Bytes

compiler-error-c2549.md

File metadata and controls

27 lines (23 loc) · 550 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Compiler Error C2549
Compiler Error C2549
11/04/2016
C2549
C2549
29310094-54a3-4605-bc6d-a312a68daf5d

Compiler Error C2549

user-defined conversion cannot specify a return type

The following sample generates C2549:

// C2549.cpp// compile with: /cclassX { public:intoperatorint() { return value; } // C2549// try the following line instead// operator int() { return value; }private:int value; };
close