Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2007-03-22 10:08:10


on Wed Mar 21 2007, Eric Niebler <eric-AT-boost-consulting.com> 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. If
> by-value is a perf-win in the common case (perf numbers?), then I'd
> prefer by-ref semantics to look like this:
>
> for_each( seq, ref(func) );
>
> instead of this:
>
> for_each< Func & >( seq, func );

Good call. But please, everyone, let's avoid over-quoting.

-- 
Dave Abrahams
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