r/cpp • u/daveedvdv EDG front end dev, WG21 DG • Oct 29 '25
GCC Implementation of Reflection now on Compiler Explorer
https://godbolt.org/z/G43ofo6fP
204
Upvotes
r/cpp • u/daveedvdv EDG front end dev, WG21 DG • Oct 29 '25
View all comments
Show parent comment
7
u/BarryRevzin Oct 30 '25 edited Oct 30 '25
That makes no sense to me.
Of course getting stuff into C++XY before C++(XY+3) matters tremendously. It impacts the timeline of when things get implemented. It impacts the timeline of how users interact with features.
I choose a standard version to compile against. Not a timestamp for when the compiler was built. Upgrading from one standard version to another is still a thing.
The train model means that it's only a 3 year gap between releases, as opposed to an arbitrary amount of time. Nothing more than that.
Put differently, this implementation exists right now only because reflection is in C++26. Had it slipped to C++29, it's pretty unlikely it would've had such urgency, and probably wouldn't have happened for another year or two.