Possible Duplicate:
Why should the copy constructor accept its parameter by reference in C++?
In wikipedia, it is mentioned that -
The following are invalid copy constructors (Reason - copy_from_me is not passed as reference) :
X (X copy_from_me);
X (const X copy_from_me);
because the call to those constructors would require a copy as well, which would result in an infinitely recursive call.
Could someone please explain, how it would result in an infinitely recursive call ?
Thanks.