fork download
  1. struct A{typedef int T;};
  2. struct B{typedef char T;};
  3.  
  4. #include <iostream>
  5. template<typename X, typename X::T I>
  6. void show() { std::cout << I << std::endl; }
  7. int main() {
  8. show<A, 65>();
  9. show<B, 65>();
  10. }
  11.  
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
65
A