Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

reflection TS - in C++23?

Tags:

c++

c++23

Reflection TS - C++ feature described here: https://en.cppreference.com/w/cpp/keyword/reflexpr

I am looking for any information about this feature.

I have this table describing compiler support: https://en.cppreference.com/w/cpp/compiler_support

but I don't see that this feature is planned or maybe the name of this feature is different?

In which C++ version will this functionality be supported?

Where can I find any tutorials/ info on this topic?

like image 626
montjet Avatar asked Jan 25 '23 06:01

montjet


1 Answers

While the Reflection TS was officially finished and published, at the same time significant progress was being made developing an alternative syntax that made use of newer language features like consteval to express reflection information as values rather than types (as in traditional template metaprogramming). The TS was published anyway as a record of the design decisions already made and to serve as a point of reference for the new design, but so long as progress continues smoothly on it it’s unlikely that the old version will be implemented anywhere. It’s also unlikely that the new system will be finalized in time for C++23, although experimental implementations of it might become available at about that time.

like image 185
Davis Herring Avatar answered Feb 09 '23 04:02

Davis Herring