ldionne / dyno

Runtime polymorphism done right
Boost Software License 1.0
975 stars 43 forks source link

Memory is not laundered after placement newing #53

Open DarthRubik opened 6 years ago

DarthRubik commented 6 years ago

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..........