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
[temp.deduct.type] p6 type name includes non-deduced context #4878
Comments
It can't be deduced from the first argument, but it can still be deduced from the third argument. |
Yes, the U in the first parameter is a non-deduced context, but it's deduced from the third parameter. |
@jensmaurer @jwakely However, the implementations say
|
It seems "When a type name is specified in a way that includes a non-deduced context...", the "includes" is hazy here. Maybe "nearest enclosing type name" is what compilers implement. |
The intent seems
The formal example indicates that.
Furthermore, |
[temp.deduct.type] p6 says
Consider this example
the type name
A<U, typename unknow_content<T>::type>
includes a non-deduced contexttypename unknow_content<T>::type
, hence theU
that comprises the type nameA<U, typename unknow_content<T>::type>
is also non-deduced?The text was updated successfully, but these errors were encountered: