26 Mar
2007
26 Mar
'07
4:53 p.m.
Tobias Schwinger wrote:
Eric Niebler wrote:
Frankly, I think the proposed design (function object passed by value, or by reference with explicitly specified template arg) is ugly. It'll be ugly both from the user's perspective and in the implementation.
OK, but why?
Because it forces users to repeat the type of the function object. Isn't it nicer to say for_each( seq, ref(func) ) instead of for_each< Func &
( seq, func )?
-- Eric Niebler Boost Consulting www.boost-consulting.com