
13 Apr
2004
13 Apr
'04
2:50 a.m.
"David Abrahams" <dave@boost-consulting.com> wrote in message news:uvfk47i7y.fsf@boost-consulting.com...
"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 );
yeah, definitely an improvement, although I wish there was some way of putting a static assertion in there. The new error message is a lot worse. br Thorsten