Boost logo

Boost :

Subject: Re: [boost] [string_ref] Feature requests
From: Daniel James (dnljms_at_[hidden])
Date: 2012-12-29 14:24:52

On 29 December 2012 18:08, Olaf van der Spek <ml_at_[hidden]> wrote:
> On Sat, Dec 29, 2012 at 6:33 PM, Daniel James <dnljms_at_[hidden]> wrote:
>> If I wasn't clear enough, I'm not suggesting supporting arbitrary
>> iterators. Just std::basic_string::const_iterator and
>> boost::basic_string_ref::const_iterator. I suppose I should have
>> included raw char pointers as well.
> Can't you use the (const char*, size_t) overload with (, s.size())?
> Or, what's the exact use case?

In quickbook I use string_ref to pass around substrings of quickbook
and xml source code. I use iterators everywhere. Using iterators like
this is standard practice in STL based code.

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