r/cpp • u/pavel_v • Jul 29 '26
C++26: Reducing undefined behaviour
https://www.sandordargo.com/blog/2026/07/29/cpp26-reduces-undefined-behaviour
89
Upvotes
r/cpp • u/pavel_v • Jul 29 '26
View all comments
27
u/jdehesa Jul 29 '26
Great stuff all around. Although I don't understand something about deleting incomplete types. If I understand correctly, C++26 will still allow that when the destructor is trivial. But how does the compiler know if the destructor is trivial, if the type is incomplete? Maybe I'm misunderstanding something.