From: Dean M. B. <mik...@gm...> - 2010-10-24 05:15:45
|
Hi Kim, Sorry it took me a while to respond, I've been wrestling with OS upgrade issues in my quest to try out GCC 4.5. See some of my thoughts below. On Fri, Oct 22, 2010 at 1:59 PM, Kim Gräsman <kim...@gm...> wrote: > Hi Dean, > > On Fri, Oct 22, 2010 at 07:50, Dean Michael Berris > <mik...@gm...> wrote: >> >> Someday when my development machine, time, and other things permit, I >> might work on an immutable string class -- similar to what the D >> programming language has -- as a replacement to std::string. Although >> std::string is the standard, I don't mind writing a better string >> class at some point that "does the right thing". > > I went looking a couple of months ago and found two -- one STL-style > and one less idiomatic: > Cool, thanks! > - http://conststring.sourceforge.net/ This one looks interesting. I wonder if it uses a shared_ptr underneath though. I'll take a look at that implementation to see if it fits with what I was thinking about. > - http://www.codeproject.com/KB/string/fix_str.aspx > Yeah, this one isn't so idiomatic. I like the first one better. > Maybe you can get some ideas from there. > Definitely, thanks for the pointers! :) -- Dean Michael Berris deanberris.com |