seems it's hard to undertand... People say it will cause undefined behavior. But I don't quite understand... any help?
p*e
2 楼
谢谢
m*i
3 楼
就是照片上的灰白tabby,左边的那个。好可爱啊!
w*m
4 楼
sometimes when exception is thrown in dtor, it will cause stack unwinding
z*o
5 楼
the end of 2012 or early next year
h*4
6 楼
可爱,可爱,右边那个也可以,可以一起吗?
【在 m****i 的大作中提到】 : 就是照片上的灰白tabby,左边的那个。好可爱啊!
e*c
7 楼
stack unwinding is not a bad thing, what do you mean?
【在 w****m 的大作中提到】 : sometimes when exception is thrown in dtor, it will cause stack unwinding
m*i
8 楼
家里已经有一支大猫了...所以只能再进一只。 好可惜啊。
【在 h*********4 的大作中提到】 : 可爱,可爱,右边那个也可以,可以一起吗?
w*m
9 楼
Sorry for thr confusion, I should clarify it: If during stack unwinding a dtor throws an exception and it is not caught and handled, the terminate() function will be called. So be prepared to catch any potential exception in dtor