C++ Logo

sg7

Advanced search

Re: [SG7] string. vector vs string_view, span in reflection API

From: David Vandevoorde <daveed_at_[hidden]>
Date: Fri, 9 Apr 2021 10:43:07 -0400
> On Apr 9, 2021, at 10:25 AM, Matus Chochlik via SG7 <sg7_at_[hidden]> wrote:
[…]
> (+ maybe a guarantee that the underlying strings covered by the string_view is always zero-terminated when returned by reflection)

Yes, we could definitely do that: That way, those who need a char const* can get one.

 Daveed

Received on 2021-04-09 09:43:10