Boost logo

Boost :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2006-05-02 13:35:03

On May 2, 2006, at 12:03 PM, Gennadiy Rozental wrote:

> "Arkadiy Vertleyb" <vertleyb_at_[hidden]> wrote in message
> news:e37oqm$gan$
>> "Neal Becker" <ndbecker2_at_[hidden]> 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.


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