News for hackers. Stuff that matters.
Re:A C++ Immutable String class by nly on Saturday September 21, 2013 @01:19PM (#6423646)
There's no point. Just make your class movable.
Re:A C++ Immutable String class by cdmh on Saturday September 21, 2013 @02:05PM (#6423828)
The class is movable already. Reference counting will allow a copy constructor or copy assignment to avoid copying the string object, just increase the reference count.