
19 May
2008
19 May
'08
4:06 a.m.
Frank Birbacher wrote:
Hi!
Noah Roberts schrieb:
Actually, I think you are correct on that. A temporary will only survive into the function call if you are accepting a const& afaik. If you are accepting a const reference then whatever is passed in will be bound to that object and is guaranteed to survive. Otherwise no.
All of my knowledge tells me: you are *not* in trouble here.
You're right. I don't know what I was thinking. Selective amnesia I guess.