[sldev] Uses of LLString and std::string ?
Tateru Nino
tateru.nino at gmail.com
Wed Jan 23 19:21:49 PST 2008
Argent Stonecutter wrote:
> On 2008-01-23, at 12:08, Richard Nelson wrote:
>> Before any C++ purists complain, let me note that std::string does
>> not have a virtual destructor and hence we can never add any member
>> variables or implement a non-trivial destructor in LLString. It
>> serves merely as a convenient wrapper for std::string that tests for
>> the null char* case, as Steve mentioned, and provides some handy
>> functions (e.g. case-insensitive string comparison) that would
>> otherwise require boilerplate code.
>
> [speechless]
>
> What kind of object oriented language doesn't make this kind of thing
> virtually transparent?
Virtual destructors were a late entry to the language standard, well
after most of the STL was frozen.
--
Tateru Nino
http://www.massively.com/
More information about the SLDev
mailing list