
13 Apr
2004
13 Apr
'04
1:57 a.m.
"Thorsten Ottosen" <nesotto@cs.auc.dk> writes:
"David Abrahams" <dave@boost-consulting.com> wrote in message news:uzn9hcgip.fsf@boost-consulting.com... [snip]
Seems like this would be more useful.
Perhaps. Do you care to explain why?
It works generically on lvalues and rvalues, so that if someone hands you a function object f, and some_algo is more efficient when it can modify its first argument in-place, you can do some_algo( mutate_rvalue(f(),0), x ); HTH, -- Dave Abrahams Boost Consulting http://www.boost-consulting.com