Boost logo

Boost :

Subject: Re: [boost] [string] Yet another Unicode string class
From: Anders Dalvander (boost_at_[hidden])
Date: 2011-02-13 14:15:29

On 20:59, Mathias Gaunard wrote:
> On 10/02/2011 21:38, Anders Dalvander wrote:
>> * It is (currently) using some C++0X features (mainly decltype).
> I'm fairly sure that's unnecessary, aren't there range_traits that
> expose the type directly?
> Also, for inclusion in Boost, it should probably use boost::begin, not
> std::begin.
> Otherwise, there is not much to say without a real implementation to
> look at.

Yes, you are correct, the use of decltype is totally unnecessary. I
fixed that and the other issue you mentioned.

I've uploaded an implementation to
if anyone is interested.

Some notes:
* The iterator classes should probably derive from iterator_adaptor.
* Currently there is no way to prevent exceptions from being thrown.
* Sometime the validity checking will be a bit redundant.
* The documentation is currently minimalistic.

Anders Dalvander


Boost list run by bdawes at, gregod at, cpdaniel at, john at