|
Boost Users : |
From: Eric Niebler (eric_at_[hidden])
Date: 2007-03-26 12:53:32
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net