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
add an example of conversion-type-id containing a placeholder type #424
Comments
[From https://groups.google.com/a/isocpp.org/forum/#!topic/std-discussion/PxWKJFQak2w] |
jensmaurer
added a commit
to jensmaurer/draft
that referenced
this issue
Nov 23, 2016
…ced return type. Fixes cplusplus#424.
See the email thread, there's another nice ill-formed example using the trailing return type syntax. |
jensmaurer
added a commit
to jensmaurer/draft
that referenced
this issue
Nov 23, 2016
A trailing return type is ill-formed, a conversion function with a deduced return type is fine, but a conversion function template with a deduced return type is ill-formed. Fixes cplusplus#424.
Note that the "No return type" phrasing Richard is referring to in his response is no longer there. I've added an example for trailing-return-type. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The standard contains no examples of
operator auto
or similar; such an example would be helpful, perhaps in [dcl.spec.auto] (maybe in p13, also showing thefoo.operator auto()
syntax for a call) or in [class.conv.fct] (maybe in p7 along with an example showing an ill-formed conversion function template).The text was updated successfully, but these errors were encountered: