Re: non-const reference to temporary (was: non-const copy ctor)

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

 



Hi Andrew,

> [...]
> C++ doesn't have any stack, and it doesn't have any registers.  By
> thinking "under the hood" in this way you're confusing implementation
> with langauge in an unhelpful way.  All that matters is how the
> language is *defined*.  I suspect this unnecessary mixing of levels is
> responsible for much of the confusion in this thread.

Good point, I guess you're right.

> [...]
> The reason non-const references to non-lvalues is not allowed is
> explained in Section 3.7 of "The Design and Evolution of C++".

I'll have a look at that soon (when I have this book).

Thanks,
  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