Closed ToruNiina closed 9 months ago
issueでは「含められないようにする」とのことでしたが、P2242R3を読む限り、これまで含められなかったものを含められるようにするようです。
"Proposed wording"から、
In [dcl.constexpr]/3, strike the last bullet: ~its function-body shall not enclose~ ~a goto statement,~ ~an identifier label,~ ~a definition of a variable of non-literal type or of static or thread storage duration.~
In [dcl.constexpr]/3, strike the last bullet:
~its function-body shall not enclose~ ~a goto statement,~ ~an identifier label,~ ~a definition of a variable of non-literal type or of static or thread storage duration.~
~its function-body shall not enclose~
インラインアセンブラなどが定数式文脈で評価されないことを条件にconstexpr内に存在することを許可されたのと同様のモチベーションによる変更のようです。
constexpr
ご確認ください。
issueでは「含められないようにする」とのことでしたが、P2242R3を読む限り、これまで含められなかったものを含められるようにするようです。
"Proposed wording"から、
インラインアセンブラなどが定数式文脈で評価されないことを条件に
constexpr
内に存在することを許可されたのと同様のモチベーションによる変更のようです。ご確認ください。