c**********e 发帖数: 2007 | 1 What happens if a function contains an exception specification and it
directly or indirectly throws an exception NOT listed in the specification?
a) Nothing happens.
b) The exception will result in a call to std::unexpected ().
c) The compiler will generate an error.
d) bThe library will call exit (1). |
z****e 发帖数: 2024 | 2 b
?
【在 c**********e 的大作中提到】 : What happens if a function contains an exception specification and it : directly or indirectly throws an exception NOT listed in the specification? : a) Nothing happens. : b) The exception will result in a call to std::unexpected (). : c) The compiler will generate an error. : d) bThe library will call exit (1).
|
r****t 发帖数: 10904 | 3 不考古又来了。
?
【在 c**********e 的大作中提到】 : What happens if a function contains an exception specification and it : directly or indirectly throws an exception NOT listed in the specification? : a) Nothing happens. : b) The exception will result in a call to std::unexpected (). : c) The compiler will generate an error. : d) bThe library will call exit (1).
|