Boost logo

Boost :

Subject: Re: [boost] [string_ref] Feature requests
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-12-29 13:08:33


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.data(), s.size())?
Or, what's the exact use case?

-- 
Olaf

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