Boost logo

Boost :

Subject: Re: [boost] [gsoc] Request Feedback for Boost.Ustr Unicode StringAdapter
From: Soares Chen Ruo Fei (crf_at_[hidden])
Date: 2011-08-13 15:51:45


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_traits.hpp,
it eliminates all the smart pointers and effectively making it exactly
the same as what you have described.


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