|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-05-03 09:25:09
From: "Geurt Vos" <G.Vos_at_[hidden]>
> Idea 2:
> function is there to take either a function or a
> functor, while bind can be used to turn a member
> function into a functor. I was just wondering,
> wouldn't it be easier (and maybe even more
> consistent) if 'bind' could take either a function
> or a member function, and 'function' only functors?
"bind" will take free functions (sometime in the future,) but "function"
contains some specific optimizations for function pointers (it avoids
dynamic allocations, AFAICT).
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk