4 ms·
You'd implement it either with a policy-based class[0] or a CRTP compile-time virtual dispatch[1]. There's zero need to involve vtables in this. [0] http://e
by hythloday 14y ago
You'd implement it either with a policy-based class[0] or a CRTP compile-time virtual dispatch[1]. There's zero need to involve vtables in this.
[0] http://en.wikipedia.org/wiki/Policy-based_design
[1] http://en.wikipedia.org/wiki/Curiously_recurring_template_pattern#Static_polymorphism