Skip to content

[basic.align], [obj.lifetime], [new.delete] Clarify uses of "suitably aligned" #7863

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Eisenwave
Copy link
Member

As discussed in #7843, there are certain uses of "suitably X" which aren't as clear as they should be. We use "suitably aligned" in a number of places, but that is not a formal term, and it is not in the index.

To clarify these uses of the term, this PR adds an \indextext{suitably aligned}, adds references to [basic.align] in [obj.lifetime], and rewords parts of [new.delete].

The last of these is the biggest change. The original wording is

Return a non-null pointer to suitably aligned storage\iref{basic.stc.dynamic}

This is confusing because it looks like "suitably aligned storage" is a defined term which would be found in [basic.stdc.dynamic]. In reality, it's not a defined term, and there are merely some rules more specifically found in [basic.stc.dynamic.allocation].

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant