|
|
|
|
|
by aw1621107
1124 days ago
|
|
Raymond Chen discussed that in a relatively recent blog post [0]. The main points are that those constants are typically used to influence struct layouts/alignments, and those must be decided at compile time. The alternative is to generate multiple versions of a struct/other code with different alignments/layouts and choose among them at runtime, but that comes with other tradeoffs. [0]: https://devblogs.microsoft.com/oldnewthing/20230424-00/?p=10... |
|