C++26 reflection at compile-time

https://andreasfertig.com/blog/2025/08/cpp26-reflection-at-compile-time/

10 points · 1 comments · view on lemmy.world

1 Comments

ananas@sopuli.xyz · 1 pts · 1y

I like how much traction reflection is already getting even if it's only available in a single clang fork.

I've been trying to figure out if I can build an actually sane bitfield type with reflection, but so far it seems like I'd need something like metaclasses on top to get what I wanted without it being a syntactic mess. Though I still have some ideas...