RAD Studio
ContentsIndex
PreviousUpNext
E2037: The constructor 'constructor' is not allowed (C++)

Constructors of the form

  X(X);  //{ Error
};

are not allowed. 

This is the correct way to write a copy constructor:

class X {
  X(const X&);// Copy constructor
};
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!