Title
Non-templated constexpr if
Status
nad
Section
8.5.2 [stmt.if]
Submitter
John Spicer

Created on 2017-05-01.00:00:00 last changed 80 months ago

Messages

Date: 2018-04-15.00:00:00

Rationale (April, 2018):

The design was thoroughly discussed before adopting the feature and the current specification was intentionally adopted. Any request for a change should go through the normal EWG process at this point.

Date: 2022-11-20.07:54:16

The effect of constexpr if in non-templated code is primarily limited to not requiring definitions for entities that are odr-used in discarded statements. This eliminates a plausible implementation techique of simply skipping the tokens of a discarded statement. Should the Standard allow such an approach? One needed change might be to say that all diagnosable rules become “no diagnostic required” inside discarded statements.

History
Date User Action Args
2018-04-11 00:00:00adminsetmessages: + msg6214
2018-04-11 00:00:00adminsetstatus: open -> nad
2017-05-01 00:00:00admincreate