Quick A: Because exceptions occur (or not) dynamically.
Why is C++0x's
noexcept
checked dynamically?I am curious about the rationale behind noexcept in the C++0x FCD.
throw(X)
was [deprecated], butnoexcept
seems to do the same thing. Is there a reason thatnoexcept
isn't checked at compile time? It seems that it would be better if these functions were checked statically that they only dcalled throwing functions within atry
block.
Add a Comment
Comments are closed.