$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Aleksey Gurtovoy (alexy_at_[hidden])
Date: 2002-01-28 12:46:43
David Abrahams wrote:
> As an optimization, it should be possible to detect free and
> member function arguments to the constructor of function<>
> and treat them as though they were passed with ref(),
> eliminating the need for dynamic allocations in many
> cases.
I had that same idea for a while as well. FWIW, if 'boost::function<>'
didn't perform dynamic allocation on something as simple as 'f =
boost::bind(&my::foo, this)' (and provided a non-throw guarantee for such
operations), we would have switched to it long time ago :).
Aleksey