Boost logo

Boost :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-05-02 14:11:26


> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Arkadiy Vertleyb
> Sent: Tuesday, May 02, 2006 11:02 AM
> To: boost_at_[hidden]
> Subject: [BULK] Re: [boost] boost::function overhead?
> Importance: Low
>
> "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...

Dave A. had a nice explanation in SD expo about how its done for
shared_ptr. I don't know if the slides are available.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk