Boost logo

Boost :

From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2022-05-13 18:14:13


On May 13, 2022, at 10:42 AM, David Bien via Boost <boost_at_[hidden]> wrote:
>
> I guess when I read the impl I think to myself: What this is missing is a _length member. But then it just becomes boost::string_view.
>
> What value added is there to this impl except that it is smaller than boost::string_view due to lacking a _length member?

If you’re careful and don’t do much with it, it can hand you back a null terminated string.

— Marshall

PS. I note that P1402 (the paper proposing cstring_view for the standard) was was reviewed by LEWG in 2019, and the resolution of that group was "We will not pursue P1402R0 or this problem space”


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