Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-04-23 06:40:36

John Torjo <john.lists_at_[hidden]> writes:

> Matthew Vogt wrote:
>>Like the following:
>>I guess it depends on how much you're willing to pay for syntactic sugar...
> we're talking the same language ;) It seems that we posted our
> solutions at about the same time ;)
> My solution however does not involve any virtual call.

Calling through internally stored function pointers may be a minor
improvement over using virtual functions, but that's not crystal clear
to me. It seems likely that compilers might optimize away the virtual
calls because all vtables are known to be strictly constant, but the
other optimization seems less likely.

Dave Abrahams
Boost Consulting

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