Boost logo

Boost :

From: David Bien (davidbien_at_[hidden])
Date: 2022-05-13 18:20:40


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 Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

From: Peter Dimov via Boost<mailto:boost_at_[hidden]>
Sent: Friday, May 13, 2022 12:19 PM
To: boost_at_[hidden]<mailto:boost_at_[hidden]>
Cc: Peter Dimov<mailto:pdimov_at_[hidden]>
Subject: Re: [boost] cstring_view

Marshall Clow wrote:
> 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.

???

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.org%2Fmailman%2Flistinfo.cgi%2Fboost&amp;data=05%7C01%7C%7Cf61e2ab6e0b04fcd8a4508da350d0f78%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637880627456487826%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=itiI6gcF%2FXnNr41BGxmxrqbPRAq%2FqhjBYRVXXG3UbwM%3D&amp;reserved=0


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