C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
C2533
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2533
 
     'identifier' : constructors not allowed a return type
 
     The specified constructor was declared with a return type.
 
     A constructor does not return a value and has no return type. A
     return type of void is not allowed.
 
     The following is an example of this error.
 
          class X
          {
          public:
             void X( void ) { ... };  // error, return type declared
             X( void ) { ... };       // OK, no return type declared
          };
                                    -♦-