
25 May
2004
25 May
'04
8:34 p.m.
Per-character operations, like "operator[]" and "operator+=" most need that optimization. If you have a "char_string<80>", you should get the inline; if you have a "char_string_base&", you have to go the virtual route. I'll clean that up a bit. John Nagle Team Overbot Rob Stewart wrote:
From: Martin <adrianm@touchdown.se>
My only objection to an ABC is that all operations will be virtual and can not be inlined.
Only a small number of the functions need to be virtual. The rest can be built atop those and can be inlined. That means there will still be some virtual calls, but not everything needs to be virtual.