New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[intro.memory] What is a "field"? #1569
Comments
c.f. [intro.memory]
|
I agree this is an issue to be fixed, but the proposed fixes don't quite work, because C++ has static data members, and unnamed bit-fields are not non-static data members. |
Ok, this refers to two mentions of "field" in notes, not in normative text, so we can be a bit more sloppy with using common, but not-otherwise-defined terms. p5 can easily use "member" (it's referring to a specific non-static data member), but p4 could either:
|
I didn't know that, thanks for the correction!
Also, thanks for the explanation; now I understand the situation.
Or put "and unnamed bit-fields" in parentheses to alleviate lengthy appearance slightly?
|
In [intro.memory] (the C++ memory model), there are several occurrences of the word "field":
a
and bit-fieldsd
ande.ee
are each separate memory locations, …While that word is a popular terminology in programming (and in fact it is used in diagnostic messages in some C++ compilers), it is not a defined term in C++.
So would it be better to add a note saying '"field" means a non-static data member'?
The text was updated successfully, but these errors were encountered: