C++ Logo

STD-PROPOSALS

Advanced search

Subject: [std-proposals] proposal: [[noexcept]] attribute
From: Walt Karas (wkaras_at_[hidden])
Date: 2019-10-23 07:53:36


I propose adding noexcept as an attribute.  It would be used after a function call to a noexcept(false) function.  It asserts that, in that context, the function will not throw any exceptions.  I also propose that, if a function that only has calls to noexcept functions, or calls with the [[noexcept]] attribute, the compiler must emit a diagnostic (presumably a warning) if the function is noexcept(false).



STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups