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
1: export static_assert(true); // mild preference for bad
2: export {static_assert(true);} // strong preference for OK
3: export template void f(); // strong preference for bad
4: template export void f(); // strong preference for bad
5: export {template void f();} // strong preference for OK
Forward P2615R0 (CWG 2443 resolution) to CWG for inclusion in C++23 (Options 2-5 as preferred above, Option 1 still prohibited).
SF
F
N
A
SA
10
9
4
2
0
Result: Consensus
Additionally permit Option 1 above as proposed in D2715R0.
static_assert(...); // as discussed, acceptasm("..."); // as discussed, accepttemplate voidf(); // as discussed, rejecttemplate<> void f<int>(); // as discussed, rejectA() -> A<0>; // treat like template and reject?
; // treat like static_assert and accept?[[...]]; // treat like static_assert and accept?
Activity
erichkeane commentedon Nov 10, 2022
1: export static_assert(true); // mild preference for bad
2: export {static_assert(true);} // strong preference for OK
3: export template void f(); // strong preference for bad
4: template export void f(); // strong preference for bad
5: export {template void f();} // strong preference for OK
Forward P2615R0 (CWG 2443 resolution) to CWG for inclusion in C++23 (Options 2-5 as preferred above, Option 1 still prohibited).
Result: Consensus
Additionally permit Option 1 above as proposed in D2715R0.
Result: Consensus
Forwarding the above to CWG.
jensmaurer commentedon Nov 10, 2022
Davis tells us he needs to change the paper to implement EWG guidance.
jfbastien commentedon Nov 10, 2022
We need to address a few more cases:
erichkeane commentedon Nov 11, 2022
The potentially attributed null statement may have the 'export' keyword, despite it being meaningless.
Result: Consensus
A deduction guide declaration inside of an
export {}should be permitted, despite not having meaning.Result: Consensus
exporton a deduction guide declaration (no {}) should be permitted, despite not having meaning.Result: Consensus
wg21bot commentedon Dec 5, 2022
P2615R1 Meaningful exports (S. Davis Herring)