Boost logo

Boost :

From: David B. Held (dheld_at_[hidden])
Date: 2002-10-03 14:58:38


"Bohdan" <warever_at_[hidden]> wrote in message
news:ani4tl$it6$1_at_main.gmane.org...
> [...]
> Still do not understand. Maybe name immutable_string isn't ok.
> immutable_string instance can be modified as with normal string:
>
> <code>
> void f( immutable_string & str )
> {
> str = "something else";
> }
> </code>

Oh, I see. I thought the strings themselves were also const. That is
sufficient for what I'd like to do. Otherwise, my comment about COW
was to implement exactly that. ;)

Dave


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