fork download
  1. #include <iostream>
  2. template<int I> struct X {
  3. static int const c = 2;
  4. };
  5. template<> struct X<0> {
  6. typedef int c;
  7. };
  8. template<typename T> struct Y {
  9. static int const c = 3;
  10. };
  11. static int const c = 4;
  12. int main() {
  13. std::cout << (Y<X<1> >::c >::c>::c) << '\n';
  14. std::cout << (Y<X< 1>>::c >::c>::c) << '\n';
  15. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
0
0