|
Boost : |
From: John Nagle (nagle_at_[hidden])
Date: 2004-05-24 21:48:58
Me too. Thanks.
The counted string vs. null terminated string issue
turns out to be complicated. If you use only
null terminated strings, appending a char to a
string becomes very expensive, and "end()" is
expensive to evaluate. If you use only counted
strings, the interaction with subscripting is
non-obvious. If you store a null, what happens?
Are you allowed to store beyond the current length
in use? Mixing C string and <string> semantics
is messy. I ended up with a lazy evaluation scheme.
John Nagle
Team Overbot
Reece Dunn wrote:
> Rob Stewart wrote:
>
>> Sure, but you've both jumped off on a tangent unrelated to the
>> purpose of the original query. See my reply to Dave's message.
>
>
> I agree (thanks for the info, though :)). What I am interested in is a
> comparison between my implementation at:
>
> boost-sandbox/boost/fixed_string
>
> and John Nagle's implementation at:
>
> http://www.animats.com/source
>
> if possible.
>
> Regards,
> Reece
>
> _________________________________________________________________
> It's fast, it's easy and it's free. Get MSN Messenger today!
> http://www.msn.co.uk/messenger
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk