Re: [boost] Constructing string_ref from rvalue string

On 23 Mar 2017 7:02 am, "Jonathan Müller via Boost"

On 03/23/17 14:59, Mathias Gaunard via Boost wrote:
On 23 Mar 2017 7:02 am, "Jonathan Müller via Boost"
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::).

On Thu, Mar 23, 2017 at 5:18 AM, Andrey Semashev via Boost < boost@lists.boost.org> wrote:
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::).
Yes. Further development will take place for boost::string_view, not
boost::string_ref. It is much closer to std::string_view in the interface. [ I wrote boost::string_ref from an early proposal, which changed over time ] -- Marshall
participants (3)
-
Andrey Semashev
-
Marshall Clow
-
Mathias Gaunard