
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Arkadiy Vertleyb Sent: Tuesday, May 02, 2006 11:02 AM To: boost@lists.boost.org Subject: [BULK] Re: [boost] boost::function overhead? Importance: Low
"Doug Gregor" <dgregor@cs.indiana.edu> 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.