It looks like it to me. I think you could make some pretty readable and high performance variants and tuples with c++26 alone. c++29 if some of the work aimed at extending reflections code generation stuff gets in will enable so much more.
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.
View all comments
Show parent comment
6
u/germandiago Aug 22 '25
so we can have sane unions also besides this? Variant is ok for what could be done before but with reflection it can be ten times better.