Philippe Sigaud <philippe.sig...@gmail.com> wrote:

I also have a template that gets the list of all members of an aggregate
type (classes, structs and, well, modules, in a way), even the constructors,
even the overloaded members, separated by type, and list them with their
names and associated type. It even gets the types aliases and unittests,
though I don't know what to do with the latter. That was part of a project
to duplicate a type: generate a new type with this extracted info. I had
vague projects to transform the methods into their const equivalent for
example or to render the fields immutable, but didn't get that far. Would
that be interesting to someone?

I could imagine extracting the unittests could be useful for making a
unittest system. Are they only included when passing -unittest?

--
Simen

Reply via email to