Exactly. But then it should just be called cstring_wrapper – calling it cstring_view seems to impart qualities to it that it doesn’t have – like I would assume that I could get a cstring_view that is a subview of an existing cstring_view for instance. Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows From: Peter Dimov via Boostmailto:boost@lists.boost.org Sent: Friday, May 13, 2022 12:19 PM To: boost@lists.boost.orgmailto:boost@lists.boost.org Cc: Peter Dimovmailto:pdimov@gmail.com Subject: Re: [boost] cstring_view Marshall Clow wrote:
On May 13, 2022, at 10:42 AM, David Bien via Boost
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.
??? In what scenarios will it not give you a null-terminated string? _______________________________________________ Unsubscribe & other changes: https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.boost...