Skip to content
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

[dcl.fct]/7 [class.this]/3 cv-qualified function types #3579

Closed
languagelawyer opened this issue Dec 26, 2019 · 0 comments · Fixed by #3581
Closed

[dcl.fct]/7 [class.this]/3 cv-qualified function types #3579

languagelawyer opened this issue Dec 26, 2019 · 0 comments · Fixed by #3581
Assignees

Comments

@languagelawyer
Copy link
Contributor

languagelawyer commented Dec 26, 2019

The Note in [dcl.fct]/7 says:

A function type that has a cv-qualifier-seq is not a cv-qualified type; there are no cv-qualified function types.

[class.this]/3 says:

A cv-qualified member function can be called on an object-expression only if the object-expression is as cv-qualified or less-cv-qualified than the member function.

I assume «as cv-qualified or less-cv-qualified» means «not more cv-qualified», as defined in [basic.type.qualifier]/4:

There is a partial ordering on cv-qualifiers, so that a type can be said to be more cv-qualified than another. Table 11 shows the relations that constitute this ordering.


If a function type can't be cv-qualified, how could one compare whether a non-stastic member function (type(?)) more or less cv-qualified than an object-expression (type(?))?

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

Successfully merging a pull request may close this issue.

2 participants