-
Notifications
You must be signed in to change notification settings - Fork 800
Use consistent terminology when referring to what a pointer to member points to #3828
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2921,8 +2921,9 @@ | |
| then the type of the identifier of | ||
| \tcode{D} | ||
| is ``\placeholder{derived-declarator-type-list} \grammarterm{cv-qualifier-seq} pointer to member of class | ||
| \grammarterm{nested-name-specifier} of type | ||
| \tcode{T}''. | ||
| \grammarterm{nested-name-specifier} of type \tcode{T}''. | ||
| \tcode{T} is known as the \defn{member type}; | ||
| it shall not be a reference type or ``\cv{}~\tcode{void}''. | ||
| The optional \grammarterm{attribute-specifier-seq}\iref{dcl.attr.grammar} appertains to the | ||
| pointer-to-member. | ||
|
|
||
|
|
@@ -2987,11 +2988,8 @@ | |
| \end{example} | ||
|
|
||
| \pnum | ||
| A pointer to member shall not point to a static member | ||
| of a class\iref{class.static}, | ||
| a member with reference type, | ||
| or | ||
| ``\cv{}~\tcode{void}''. | ||
| A pointer to member shall not designate a static member | ||
| of a class\iref{class.static}. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This restriction seems redundant; how could the "static member" situation ever arise? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. True; I didn't want to drastically change it too much, be this can certainly be turned into a note saying something along the lines of: "A pointer to member designating a static member cannot be formed as there is no syntax to do so." |
||
|
|
||
| \pnum | ||
| \begin{note} | ||
|
|
@@ -3417,7 +3415,7 @@ | |
| \begin{itemize} | ||
| \item the function type for a non-static member function, | ||
|
|
||
| \item the function type to which a pointer to member refers, | ||
| \item the member type\iref{dcl.mptr} of a pointer to member type, | ||
|
|
||
| \item the top-level function type of a function typedef declaration | ||
| or \grammarterm{alias-declaration}, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.