You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CWG3185 Exporting a static_assert-declaration #2802
Writing export ; or export static_assert(true); seems misguided and is devoid of any meaning possibly intended to be conveyed by the export. There is already a prohibition to export declarations of partial specializations.
CWG3185 wants to forbid such practices. Note that the braced form of export is left alone, i.e.
export { ; static_assert(true); }
continues to be well-formed.
There was a poll by EWG a few years ago in response to a C++23 NB comment that was called consensus for allowing export static_assert(true);, but that was actually with a majority of "neutral" voters. It's unclear why that was called consensus.
EWG approves of the CWG proposed resolution to CWG3185, and forwards back to CWG. EWG also encourages CWG to consider the asm-declaration. Also, consider attribute-declaration.
Activity
opensdh commentedon Jun 1, 2026
We should rediscuss deduction guides if we're going to rediscuss things.
hanickadot commentedon Jun 8, 2026
Result: consensus
jensmaurer commentedon Jun 12, 2026
See P2615 Meaningful exports CWG2443 #1236
R0 implements the direction that Davis wants, which probably needs EWG approval.