fork download
  1. template <typename T1, typename T2> struct IsSameType { static bool const is = false; };
  2. template <typename T> struct IsSameType<T, T> { static bool const is = true; };
  3.  
  4. #include <iostream>
  5. using namespace std;
  6.  
  7. int main() {
  8. std::cout << IsSameType<char, unsigned char>::is << std::endl;
  9. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
0