RAD Studio
ContentsIndex
PreviousUpNext
E2037: The constructor 'constructor' is not allowed

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!