Boost logo

Boost :

From: Ben Hutchings (ben.hutchings_at_[hidden])
Date: 2004-09-20 09:55:56


Maxim Yegorushkin <e-maxim_at_[hidden]> wrote:
> I've been working on a small library - an immutable C++ string. Now
> it is in usable state and has been put in use in a couple of real
> projects.
> Although it needs further polishing, I would like to know is there
> any interest in such a library?

Great stuff. I certainly think it would be useful to have a light-
weight string.

> Here is the link: http://conststring.sourceforge.net/

There's one possible problem I noticed, which is that an allocated
buffer will be aligned properly for boost::detail::atomic_count but
perhaps might not be aligned properly for char_t (or to whatever
buffer_storage_alignment specifies). Let me apply the James Kanze
test [*]: is it safe to create a const_string<double> on a SPARC?

[*] See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8670> if you
    don't know what I'm talking about.

Ben.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk