It appears that you are placement newing objects with their constructors which you have stored in a v-table via some tricks........that is fine, except that it appears that you are just referencing the memory that is created via the same pointer that you created it with......technically this is UB. Since you are using c++17 you can use std::launder..........
It appears that you are placement
new
ing objects with their constructors which you have stored in a v-table via some tricks........that is fine, except that it appears that you are just referencing the memory that is created via the same pointer that you created it with......technically this is UB. Since you are using c++17 you can use std::launder..........