[cfe-dev] dependent name related question
guoqing zhang
gqzhang81 at gmail.com
Wed Mar 4 12:26:36 PST 2015
Hi ,
Can somebody explain why I need "typename" before Y<alignof(X)>::type in
the following piece of code ?
template<int N> struct Y { typedef int type; };
template<int N> void h() {
struct X {};
typename Y<alignof(X)>::type z;
}
Y<alignof(X)>::type is non-dependent, isn't it ?
Regards
-guoqing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150304/f81148e2/attachment.html>
More information about the cfe-dev
mailing list