Am 18.08.2011, 22:19 Uhr, schrieb Jonathan M Davis <jmdavisp...@gmx.com>:
Yeah. I don't understand why a struct literal would be an lvalue. It's a
temporary. What possible value does it have? It's not a variable. It doesn't refer to a variable. Why would you be able to assign to anything which is not
a variable (or indirectly refers to one - e.g. with ref)?

I don't understand it either.
It only makes sense with const ref.

Reply via email to