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
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 :).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk