Boost logo

Boost :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2006-05-02 10:03:02

"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
> into the function call?

boost::function will introduce an extra virtual function call (which is not
a big deal in most cases).

But why do you need to wrap your pointer? Can't you pass it directly? It
would be treated exactly the same way as the function object...


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