Subject: Re: string. vector vs string_view, span in reflection API
From: Peter Dimov (pdimov_at_[hidden])
Date: 2021-04-09 09:26:28
David Vandevoorde wrote:
> One of the issues that arise is header dependenciesâ¦ do we really want to
> require that <vector> and <string> be included for any code that does
> something nontrivial with reflections? Maybe âyesâ, and maybe thatâll be less
> of a concern with modules?
> Meanwhile, our (Faisal & I) current implementation uses std::string_view (with
> some assumptions about its internal structure) and a very simple
> vector<info>-like class thatâs part of the <meta> header.
That's another reason I prefer `char const*` - I don't find it elegant when
compiler built-ins have to know about user-defined types such as `string_view`.
SG7 list run by firstname.lastname@example.org
Older Archives on Google Groups