C++ Logo

SG7

Advanced search

Subject: Re: string. vector vs string_view, span in reflection API
From: David Vandevoorde (daveed_at_[hidden])
Date: 2021-04-09 09:43:07


> 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


SG7 list run by sg7-owner@lists.isocpp.org

Older Archives on Google Groups