Subject: Re: [boost] Constructing string_ref from rvalue string
From: Jonathan MÃ¼ller (jonathanmueller.dev_at_[hidden])
Date: 2017-03-23 07:02:02
I've just blogged about this topic:
(Planned that post before this thread)
In my opinion I think `boost::string_ref` and `std::string_view` are two
different things, `boost::string_ref` is for use cases where
`std::string_view` is potentially more dangerous (due to rvalue strings)
like in return values, and `std::string_view` is for arguments as
`boost::string_ref` isn't great there (due to not accepting rvalue
strings). Blog post goes into a little bit more detail.
I'm just throwing my opinion out there.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk