On 4/23/2013 8:33 AM, Manu wrote:Locals have a lifetime that is terminated by the closing } of the scope they appear in. There can be many such scopes in a function.
"The r-value being passed is assigned to a stack allocated temporary, which has
a lifetime that is identical to any other local variable, ie, the lifetime of
the function in which it appears."
There, I defined it.
There's also the issue of:
a || b || c
If b creates a temporary, it's life ends at the end of the expression or statement - it's complicated.