|
|
|
|
|
by Someone
5299 days ago
|
|
A good attempt, but I spot an error: "They’re not lvalues because both are temporary results of expressions, which don’t have an identifiable memory location (i.e. they can just reside in some temporary register for the duration of the computation)." The problem is that lvalues _can_ "just reside in some temporary register for the duration of the computation". Any decent optimizing compiler will treat simple loop counters that way. I am not even sure the C++ standard even mentions registers. |
|
Maybe he could update this line for clarity, though.