r/cpp • • Jul 29 '26

C++26: Reducing undefined behaviour

https://www.sandordargo.com/blog/2026/07/29/cpp26-reduces-undefined-behaviour
89 Upvotes

48 comments sorted by

View all comments

Show parent comment

18

u/RevRagnarok Jul 29 '26

P3144R2 makes deleting a pointer to an incomplete class type ill-formed. Full stop. It’s now a compilation error.