
2 May
2006
2 May
'06
5:35 p.m.
On May 2, 2006, at 12:03 PM, Gennadiy Rozental wrote:
"Arkadiy Vertleyb" <vertleyb@hotmail.com> wrote in message news:e37oqm$gan$1@sea.gmane.org...
"Neal Becker" <ndbecker2@gmail.com> wrote
I'd like to use boost::function to wrap (pointer to) function to pass to template functions that expect function objects. I'm just wondering, though, if using boost::function wrapper will introduce additional overhead into the function call?
boost::function will introduce an extra virtual function call (which is not a big deal in most cases).
Actually it doesn't if I am not mistaken.
boost::function doesn't use virtual functions, but the effect is the same. boost::function adds one additional indirect call through a function pointer. Doug