fork download
  1. #include <type_traits>
  2.  
  3. int main() {
  4. int a = 1;
  5. bool b = 1;
  6. static_assert(! std::is_same<decltype(a), decltype(b)>::value,
  7. "No, they are not the same on all aspects");
  8. }
Success #stdin #stdout 0s 2924KB
stdin
Standard input is empty
stdout
Standard output is empty