r/cpp • u/meetingcpp Meeting C++ | C++ Evangelist • Sep 24 '26
About alignment, struct layout and the cache...
https://meetingcpp.com/blog/items/About-alignment--struct-layout-and-the-cache---.html
36
Upvotes
View all comments
Show parent comment
1
u/Able_Development2478 Sep 26 '26
Declaration order in C++ strictly dictates the memory layout and the initialisation order and lot of code depends on it so I doubt there will be a change which seperates memory layout and initialisation order. There will be a lot of pushback I think. Unless I am misunderstanding something :D