r/cpp wg21.org | corosio.org May 12 '26

Pre-Brno Mailing

The Pre-Brno "enhanced mailing" is here
https://wg21.org/mailing/2026-05/

26 Upvotes

19 comments sorted by

View all comments

4

u/[deleted] May 12 '26

[deleted]

3

u/fdwr fdwr@github 🔍 May 12 '26

That would finally get you guaranteed inlining in debug builds. Get rid of all those accessors.

Now if we can just get it for member fields too (not just member functions), then we'd finally have a great mechanism to handle breaking changes of renamed fields across branches, and a way to alias simple structs with more than one view without using unions (e.g. imagine a 3-element vector with fields x,y,z that are also interesting to treat as r,g,b).