
23 Apr
2004
23 Apr
'04
7:51 p.m.
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