C++ Logo


Advanced search

Subject: string. vector vs string_view, span in reflection API
From: Matus Chochlik (chochlik_at_[hidden])
Date: 2021-04-09 01:56:24


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.


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

Older Archives on Google Groups