This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 117b. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-08-11
2722. Temporary materialization conversion for noexcept operatorSection: 7.6.2.7 [expr.unary.noexcept] Status: DRWP Submitter: Brian Bi Date: 2023-04-24[Accepted as a DR at the June, 2023 meeting.]
It is unclear whether noexcept(A()) applies the temporary materialization conversion to the prvalue A(). The resolution of issue 1354 suggests that it does so that the destructor is (notionally) invoked.
Proposed resolution (approved by CWG 2023-05-12):
Change in 7.6.2.7 [expr.unary.noexcept] paragraph 3 as follows:
If the operand is a prvalue, the temporary materialization conversion (7.3.5 [conv.rval]) is applied. The result of the noexcept operator is true unless the expression full-expression of the operand is potentially-throwing (14.5 [except.spec]).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4