The throw specifier from C++ 11 is now considered to be poorly implemented and can be indeterministic.
The specifier noexcept is a modernized version that solves earlier pitfalls.
However, it does not include an option to permit specific exceptions.
Thus, empty throw() specifiers have been replaced with noexcept and
non-empty throw(...) specifiers were removed.
This implements the modernize-use-noexcept clang-tidy check.
-"Dynamic exception specification 'throw()' is deprecated; consider using 'noexcept' instead"
The throw specifier from C++ 11 is now considered to be poorly implemented and can be indeterministic. The specifier
noexcept
is a modernized version that solves earlier pitfalls. However, it does not include an option to permit specific exceptions. Thus, emptythrow()
specifiers have been replaced withnoexcept
and non-emptythrow(...)
specifiers were removed. This implements the modernize-use-noexcept clang-tidy check. -"Dynamic exception specification 'throw()' is deprecated; consider using 'noexcept' instead"