Re: [boost] [Fusion] Notice of breaking change

shunsuke wrote:
I'm not sure about this. The function object f is called with f(*it). The dereference may return either l or rvalues depending on its implementation. The Boost.ResultOf docs are not specific about passing T versus T&. Looking a the draft TR1 docs, if Ti is a reference ti is an lvalue, otherwise it is an rvalue. As rvalues are possible, the above code looks correct. Assuming Boost.ResultOf behaves like the TR1 spec, I think the above is ok(?) It is possible this usage is not consistent correct across Fusion though. I'll have a review of the result_of usage shortly when I get a chance. Thanks Dan ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/

dan marsden wrote:
I'm not sure about this. The function object f is called with f(*it). The dereference may return either l or rvalues depending on its implementation.
I didn't know '*it' could be rvalue. It seems that result_of::deref can be used.
It is possible this usage is not consistent correct across Fusion though. I'll have a review of the result_of usage shortly when I get a chance.
I believe the document in http://www.boost.org/libs/utility/utility.htm is outdated. We should ask Douglas Gregor, though. Regards, -- Shunsuke Sogame
participants (2)
-
dan marsden
-
shunsuke