Boost logo

Boost Users :

From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2008-05-19 00:06:02


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net