samedi 9 décembre 2017

Does considered c++20 static reflection feature include iteration over parent classes?

Studying information about possible new c++20 language features I discovered the static reflection is considered to be added. The document summing up the meeting on the proposals gathers the information on what actually proposals intend to introduce and what authors believe should not be added:

  • Supported:
    • Data members (e.g. iterating over the member variables)
    • Member types (typedefs/using declarations)
    • Enumerators
    • Template instantiations
    • Alias support
  • Not Supported
    • Namespace member sequences
    • Functions
    • Class templates
    • Building new datatypes
    • Reflection facilities already in C++
    • Anonymous Functions
    • Attributes

My first thought was that the very basic reflection element - iterating over parent classes, is not included neither in supported nor not supported list. Are indeed none of the proposals request to add this one?





Aucun commentaire:

Enregistrer un commentaire