
13 Aug
2011
13 Aug
'11
7:51 p.m.
On Sun, Aug 14, 2011, Robert Ramey wrote:
hmmm - why can't we just leave it at "std::string represents a sequence of "char"" and define some derivative class which defines it as a "a refinement of std::string which supports UTF-8 functionality" ?
Actually my design is based on this exact idea except that I added an indirection through smart pointers. But if you look at my alt_string_traits implementation at https://github.com/crf00/boost.ustr/blob/master/boost/ustr/detail/alt_string..., it eliminates all the smart pointers and effectively making it exactly the same as what you have described.