You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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..........
The text was updated successfully, but these errors were encountered:
DarthRubik
changed the title
Memory is not laundered after placement newing
Memory is not laundered after placement newing
Jun 7, 2018
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..........The text was updated successfully, but these errors were encountered: