r/cpp • • May 02 '26

Post examples of using reflections in your projects

What the title says. I just want to see what interesting things people are using reflection for now that its in gcc. Thanks.

58 Upvotes

25 comments sorted by

View all comments

Show parent comment

6

u/DankPhotoShopMemes May 03 '26

if you’re new to c++, in my opinion, you shouldn’t even look at the reflection features yet. There are few good use cases for it. If you’re not familiar enough with the more mature language features yet, it can be easy to overuse reflection.

Though it depends on how “new” you are to c++. Also, again, just my personal opinion.

1

u/enl1l May 03 '26

About 1 year. Though i'm familiar with C so the I have a good base for understanding.