Why does a copy constructor accept a const reference as parameter?

Because otherwise an infinite call chain would be created. i.e., a copy constructor has to call itself to make a copy of the argument.

No comments: