Re: non-const copy ctor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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);

Yours,
  Christian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux