RAD Studio |  |

E2037: The constructor 'constructor' is not allowed (C++)

Constructors of the form

Copy Code

      X(X);  //{ Error
    };

are not allowed.

This is the correct way to write a copy constructor:

Copy Code

    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!