non-const copy ctor

Christian Fröbel
Sat Apr 8 01:20:00 GMT 2006

Hi John,

John Love-Jensen wrote:
> [...]
> The problem is infinite recursion.  See 11.3.4 of Stroustrup's C++PL.

Thanks for the pointer. But are you sure this is related to the problem at 
hand? Stroustrup sais that a declaration like 
A::A (A copyMe);
leads to infinite recursion. This I understand because the copyMe argument has 
to be copied as well requiring a copy constructor itself.  But it doesn't 
explain why this should cause infinite recursion:
A::A (A& copyMe);


More information about the Gcc-help mailing list