C++ Logo

sg7

Advanced search

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

From: Matus Chochlik <chochlik_at_[hidden]>
Date: Fri, 9 Apr 2021 08:56:24 +0200
Hi,

IIUC the current plan is to use `string` and `vector<meta::info>` in the
reflection API (both of which require consteval dynamic allocation). Is
this correct and if so, was there some reason for not using `string_view`
and `span<meta::info>` instead? The returned metadata is always static, so
mutable containers look like overkill.

BR,
--Matus

Received on 2021-04-09 01:56:36