Re: [boost] [BULK] Re: boost::function overhead?

-----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.

"Sohail Somani" <s.somani@fincad.com> writes:
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.
Thanks. I did talk about that technique, but shared_ptr uses virtual functions, and I don't think I'd have said otherwise. -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams
-
Sohail Somani