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