
25 May
2004
25 May
'04
6:59 p.m.
The base class actually has the full basic_string interface (minus the constructors). It exposes 14 virtual functions that are implemented by fixed_string (allowing the proper implementation to be called).
Must have missed that, sorry. My only objection to an ABC is that all operations will be virtual and can not be inlined.
use of the "struct hack" as a performance option. e.g.
This is interesting. Does it have any specific advantages over the two implementations?
Only performance since all operations can be inlined without the need for an extra pointer.