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:

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 <> if you
    don't know what I'm talking about.


Boost list run by bdawes at, gregod at, cpdaniel at, john at