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
};