r/cpp • u/pavel_v • Apr 02 '26
What happens when a destructor throws
https://www.sandordargo.com/blog/2026/04/01/when-a-destructor-throws
100
Upvotes
r/cpp • u/pavel_v • Apr 02 '26
View all comments
Show parent comment
1
u/CornedBee Apr 03 '26
Most of our logical assertions are like "this container must have at least 2 elements because it represents a route from A to B, possibly via some intermediate points" or "this value must be larger than 0 because it is a distance between distinct points".