C++ Logo

sg7

Advanced search

Re: Update: P1240R2 — Scalable Reflection

From: Tony V E <tvaneerd_at_[hidden]>
Date: Sat, 22 Jan 2022 23:09:30 -0500
On Tue, Jan 18, 2022 at 1:40 PM Daveed Vandevoorde via SG7 <
sg7_at_[hidden]> wrote:

>
>
> How about specifying that all string_view results from reflection
> functions (there aren’t that many) have a null-terminated data()?
> E,g,:
>
> auto len = std::strlen(name_of(^S).data()); // Okay and as intuitively
> expected.
>
> Daveed
>
>
Will this lead to invalid expectations regarding string_views? Sometimes
strlen works on string_views, sometimes it doesn't?
Or when this code is refactored to not only work on reflection
string_views...

-- 
Be seeing you,
Tony

Received on 2022-01-23 04:09:41