> I have anoter proposal: Since there is a n argument, we can expect
> this to be meeningful, so:
I think so, too.
> lyxstring::lyxstring(value_type const * s, size_type n)
> {
> Assert(s && n < npos); // STD!
> static Srep empty_rep(0, "");
> if (*s && n) { // s is not empty string and n > 0
> rep = new Srep(n, s);
> } else {
> ++empty_rep.ref;
> rep = &empty_rep;
> }
> }
>
> But we should check the standard, and see if a '\0' teminated string
> is required, and wat values of n is allowed.
'n' is the authority in question here. You can store and retrieve as many
'\0' char in a std::string. They are 'ordinary' characters there.
Andre'
--
Andre' Poenitz ........................................ [EMAIL PROTECTED]