yy 发帖数: 45 | 1 suppose I have a statement like:
throw;
(throw without a type exception)
Can I know what is the default exception for c++?
It seems to me: if there is no outer layer exception, statement
throw ;
will return a notype exception and cause Abort anyway even if
I use
catch (...)
Any idea, thanks, | c********e 发帖数: 383 | 2 throw without an operand means re-throw. if re-throw is used in a context
when
there is no exception, terminate () will be called.
【在 yy 的大作中提到】 : suppose I have a statement like: : throw; : (throw without a type exception) : Can I know what is the default exception for c++? : It seems to me: if there is no outer layer exception, statement : throw ; : will return a notype exception and cause Abort anyway even if : I use : catch (...) : Any idea, thanks,
| yy 发帖数: 45 | 3 Thanks for confirmation, this is exactly what I guess :)
【在 c********e 的大作中提到】 : throw without an operand means re-throw. if re-throw is used in a context : when : there is no exception, terminate () will be called.
|
|