$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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