Re: No subclassing of UnicodeString???

Markus Scherer <[email protected]>
Newsgroups gmane.comp.lib.icu.general
Organization IBM
Message-ID <[email protected]>
We do not try especially hard to make it difficult to subclass UnicodeString. The statement in the 
API docs means mostly that we have not tested whether subclassing is effectively possible.

Also, most of UnicodeString's methods are not virtual, so if you have a base class pointer to your 
subclass object, it won't call your subclass methods.

markus

Venkatram Vundavalli wrote:
> Hi,
> It is mentioned in UnicodeString class that it is not suitable for
> subclassing. Is there any specific reason? 
> I guess, it is a design decision and was it enforced in the code. I tired
> small class derived from this class. It seems to be working fine.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.