r/cpp • • Aug 22 '25

The power of C++26 reflection: first class existentials

[removed]

98 Upvotes

98 comments sorted by

View all comments

Show parent comment

4

u/MorphTux Aug 28 '25

Yes indeed. I have a (mostly conforming) variant reimplementation here: https://github.com/rsl-org/util/blob/master/include/rsl/variant

There's not much point benchmarking an experimental compiler, but I've seen a roughly 20x speedup compared to libc++'s variant with this. That's quite significant.