BRAINSia / BRAINSTools

A suite of tools for medical image processing focused on brain analysis
http://brainsia.github.io/BRAINSTools/
Apache License 2.0
111 stars 96 forks source link

ENH: Replaced instances of the `throw()` specifier with `noexcept` or removed them entirely. #511

Closed kian-weimer closed 3 years ago

kian-weimer commented 3 years ago

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"