
Igor Kholodov <C.JUMP@prodigy.net> wrote:
I am testing immutable string outside boost, using it as string type with common text transformation library (http://cttl.sourceforge.net/). It works quite well, about 18% speed is gained while parsing large XML documents (>1MB) when using const_string.
That is cool. I think that for code written with const_string in mind the benefit can be better.
I would like to point out a couple of issues:
First, there seems to be a typo in implementation of const_string& append(char_t c, size_t n). It should use a comma instead of dot when calling corresponding constructor of const_string. See const_string.hpp, line 444.
Second, a lack of length() member function.
Thank you for the report, I'll check and fix it. The interface still needs polishing, as well as the unit test. -- Maxim Yegorushkin