Boost logo

Boost :

From: Shunsuke Sogame (mb2act_at_[hidden])
Date: 2006-05-03 00:29:32

Arkadiy Vertleyb wrote:
> "Doug Gregor" <dgregor_at_[hidden]> wrote
>>boost::function doesn't use virtual functions, but the effect is the
>>same. boost::function adds one additional indirect call through a
>>function pointer.
> Sorry for the inaccurate response.
> Out of curiousity, is this technique described anywhere (other than the
> code)? It's hard to imagine the way to erase the type of a functor without
> some kind of a polymorphic adaptor...

FWIW, I also had the same curiosity and then roughly discribed the comparison
of virtual way between Boost.Function way:

Shunsuke Sogame

Boost list run by bdawes at, gregod at, cpdaniel at, john at