As you can see, both of you points from this comment are actually possible without any trouble. Reflection might help to automate things but I haven't yet looked into it, so that's only crude example. Technically, that should be achievable with c++98 (one will need to write their own erasure though).
View all comments
Show parent comment
1
u/Lenassa Aug 28 '25
Ok, I get it now, here: https://godbolt.org/z/xb6155fMY
As you can see, both of you points from this comment are actually possible without any trouble. Reflection might help to automate things but I haven't yet looked into it, so that's only crude example. Technically, that should be achievable with c++98 (one will need to write their own erasure though).