r/cpp • u/germandiago • Oct 25 '26
C++ profiles for initialization and invalidation: WIP implementation prototypes already exist in GCC/Clang
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p4415r0.pdfIn this paper it can be seen some interesting profiles progress for prototypes in Gcc and Clang.
21
Upvotes
View all comments
Show parent comment
2
u/foonathan Oct 26 '26
I think stuff like deprecated, maybe_unused, etc. which only affect diagnostics are perfectly fine as attributes.
But override and also constinit, which also only affect diagnostics, should have been attributes too.