-
This approach could significantly reduce potential vulnerabilities and improve the overall stability of our code. After all, we already have noexcept specifier . This is important because exceptions thrown in the constructor are not caught or recoverable. |
Beta Was this translation helpful? Give feedback.
Answered by
gregmarr
Mar 11, 2025
Replies: 1 comment 3 replies
-
@shemeshg Why do you think that constructor exceptions are not catchable or recoverable? Do you mean the destructor, which is noexcept by default? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
shemeshg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@shemeshg Why do you think that constructor exceptions are not catchable or recoverable? Do you mean the destructor, which is noexcept by default?