Boost logo

Boost :

Subject: Re: [boost] Constructing string_ref from rvalue string
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2017-03-28 13:17:56


On Fri, Mar 24, 2017 at 2:44 AM, Daniel James via Boost <
boost_at_[hidden]> wrote:

> On 24 March 2017 at 07:57, Jonathan Müller via Boost
> <boost_at_[hidden]> wrote:
> > That's exactly what I said in my blog post. Function parameters are a
> > special use case that require a different type, that type is
> > std::string_view, for everything else a boost::string_ref that doesn't
> bind
> > to rvalues could be repurposed.
>
> That sounds like a pernickety solution to me. I'd find it easier to
> remember the risks than have to remember which type to use at any
> particular moment.
>
> Regardless, my main concern would be that string_view isn't compatible
> with the standard. Generally when I see a Boost version of a standard
> library object I expect it be reasonably close to a drop in
> replacement.
>
>
I have reverted this change for this release.

-- Marshall


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