r/cpp • EDG front end dev, WG21 DG • Oct 29 '25

GCC Implementation of Reflection now on Compiler Explorer

https://godbolt.org/z/G43ofo6fP
204 Upvotes

85 comments sorted by

View all comments

7

u/NilacTheGrim Nov 03 '25

typedef enum { RED } Color;

OP:

  • Uses ultra-modern C++26 reflection

  • Still uses C-style typedef notation from 1972.

2

u/NotAYakk Apr 06 '26

* Uses ALL CAPS constants notation indicating a `#define` from 1812 BC.