Boost logo

Boost :

Subject: Re: [boost] Constructing string_ref from rvalue string
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2017-03-23 12:18:34


On 03/23/17 14:59, Mathias Gaunard via Boost wrote:
> On 23 Mar 2017 7:02 am, "Jonathan Müller via Boost" <boost_at_[hidden]>
> wrote:
>
> I've just blogged about this topic: http://foonathan.net/blog/2017
> /03/22/string_view-temporary.html
> (Planned that post before this thread)
>
> In my opinion I think `boost::string_ref` and `std::string_view` are two
> different things,
>
>
> They're not. They were always supposed to be the same thing.
>
> There is a lot of code out there that uses std::string_view and
> boost::string_ref interchangeably depending on which is available.

I'll add that boost::string_ref is supposed to be removed at some point.
It's deprecated in favor of string_view (std:: or boost::).


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