Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2004-04-23 14:51:32


David Abrahams wrote:
> 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.
>

Indeed, this is an implementation strategy that I tried. I decided
against it because of the very poor code it generated (on vc7.1 with
full optimizations).

-- 
Eric Niebler
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk