4

As far as I know, static reflection is currently on the roadmap for C++26.

The reflection TS proposes a type-based syntax, but a value-based syntax has also been proposed in the meantime. In P2560 Matúš Chochlı́k presented a comparison of the both approaches.

Has a decision already been made on which approach is likely to be standardized on?

Benjamin Buch
  • 4,752
  • 7
  • 28
  • 51
  • 7
    From experience I’d say that your question is about 5 years too early … – Konrad Rudolph Mar 07 '23 at 17:29
  • 1
    Isn't this opinion-based? – user253751 Mar 07 '23 at 17:39
  • 1
    @user253751 I would like to know if the Standards Committee has already made a decision on this topic. – Benjamin Buch Mar 07 '23 at 18:14
  • 4
    No mention here [C++ Language Evolution status - 2022-11-15](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p1018r19.html) and you can track the status of P2560 here:- https://github.com/cplusplus/papers/issues/1221 – Richard Critten Mar 07 '23 at 18:27
  • 1
    @RichardCritten It is still in the study group stage (SG7), so I don't think it would be expected to be listed in the Language Evolution (EWG) report. There is a mailing list of the study group [here](https://lists.isocpp.org/mailman/listinfo.cgi/sg7), but I don't know how much it reflects their ongoing work. – user17732522 Mar 07 '23 at 19:56

0 Answers0