cplusplus / CWG

Core Working Group
23 stars 7 forks source link

[basic.align] p1 should use the "minimum" to be more precise #418

Open xmh0511 opened 11 months ago

xmh0511 commented 11 months ago

Full name of submitter (unless configured in github; will be published with the issue): Jim X

An alignment is an implementation-defined integer value representing the number of bytes between successive addresses at which a given object can be allocated.

Such a given object can be allocated at successive addresses whose differences are integral multiples of the alignment value. So, the alignment is defined to represent the minimum number of bytes for which the rule should be obeyed.

Suggested Resolution

An alignment is an implementation-defined integer value representing the minimum number of bytes between two successive addresses at which a given object can be allocated.