Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Tue, Mar 12, 2002 at 10:41:37AM +0100, Lars Gullik Bjønnes wrote:
>> I really do belive that the drawback with a cstring is a lot larger
>> than the drawbacks of string. cstring cannot store '\0', assignment is
>> always O(n) if you use dynamic allocation, it does not play well with
>> std::string.
>
| Ok, maybe I did not make the point clear enough. cstring should only be
| used when data is static, so copy is O(1) since it has to copy the pointer,
| not the data.

You then have a string that can be used for almost nothing.

boost::array<char, 10>

| I see no easy way to enforce this by the compiler, but e.g. std::valarray
| behaves similarly.

>> bull...
>> 
>> I use C++ as syntactic sugar...
>
| Oh yes. And you buy everybody one of these 2GHz machines just to compile
| and run LyX.

So this is what you are playing at.  (as if I didn't guess...)
And you are not talking of running lyx, don't even pretend you are...
only compiling...

-- 
        Lgb

Reply via email to