
13 Jun
2007
13 Jun
'07
10:11 a.m.
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