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

[over.match] Why "glvalue or class prvalue"? #2046

Closed
cpplearner opened this issue Apr 20, 2018 · 0 comments
Closed

[over.match] Why "glvalue or class prvalue"? #2046

cpplearner opened this issue Apr 20, 2018 · 0 comments
Assignees

Comments

@cpplearner
Copy link
Contributor

[over.match]/(2.7):

invocation of a conversion function for conversion to a glvalue or class prvalue to which a reference ([dcl.init.ref]) will be directly bound.

[over.match.ref]/1:

Under the conditions specified in [dcl.init.ref], a reference can be bound directly to a glvalue or class prvalue that is the result of applying a conversion function to an initializer expression.

In C++17, reference initialization no longer distinguishes class prvalue and non-class prvalue. Should these two sentences be changed?

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

No branches or pull requests

2 participants