X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fscope-exit.hpp;h=3f8c90f80941fbe4384c498c559a6c4d6454be0c;hb=HEAD;hp=20d9b892d34d0ff54265035b951d144a9d5b6d4b;hpb=9d89db29f3bf6c826293350f8f1a8559ec906b24;p=lttng-tools.git diff --git a/src/common/scope-exit.hpp b/src/common/scope-exit.hpp index 20d9b892d..3f8c90f80 100644 --- a/src/common/scope-exit.hpp +++ b/src/common/scope-exit.hpp @@ -33,7 +33,8 @@ class scope_exit { public: /* * Since ScopeExitInvocableType will be invoked in the destructor, it - * must be `noexcept` lest we anger the undefined behaviour gods. + * must be `noexcept` lest we anger the undefined behaviour gods by throwing + * an exception while an exception is active. */ static_assert(details::is_invocation_noexcept::value, "scope_exit requires a noexcept invocable type");