
23 Mar
2017
23 Mar
'17
7:02 a.m.
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, `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. Jonathan