Hi,
I have a question:
why does unhandled domain_error from sqrt() not cause a terminate?
for a example:
1 2 3 4
|
void main(){
std::sqrt(-2); // Will not cause terminate()
throw std::domain_error(); // Will cause terminate()
}
|
cheers
qon
Last edited on
Usually functions from cmath don't throw exceptions