We got reflection - now what?
summary
C++26 delivers compile-time reflection in the final draft and demos show concrete results: enums get get_enum_values arrays built at compile time so runtime code can iterate, name-to-value and safe casts produce runtime errors for invalid inputs, and a clang side-branch plus -freflection-latest runs five Godbolt links of working examples. Code generation produces hashing and JSON serializers from member iteration, an access context controls public/private visibility, and a concept-like matcher verifies method signatures; major compilers lack full support yet but the examples compile and run.
AI-written summary · about
