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

Text is not clear about what it means to "bind directly" #5805

Closed
t3nsor opened this issue Aug 30, 2022 · 1 comment
Closed

Text is not clear about what it means to "bind directly" #5805

t3nsor opened this issue Aug 30, 2022 · 1 comment

Comments

@t3nsor
Copy link
Contributor

t3nsor commented Aug 30, 2022

Currently [dcl.init.ref] states as follows:

In all cases except the last (i.e., implicitly converting the initializer expression to the referenced type), the reference is said to \defn{bind directly} to the initializer expression.

In the discussion of issue #1750, Richard Smith says that he thinks that this refers to both sub-bullets of the last bullet. Based on the history of [dcl.init.ref] starting from CWG issue 1604, I agree. But this really isn't clear in the current text. Only the second sub-bullet of the last bullet explicitly specifies that an implicit conversion to the referenced type occurs. The first sub-bullet, I think, does something a bit different: it builds what could be thought of as an implicit conversion sequence from the initializer expression to the referenced type, but it doesn't actually say to do an implicit conversion.

@t3nsor
Copy link
Contributor Author

t3nsor commented Nov 11, 2022

Will report as CWG issue.

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

1 participant