fork download
  1. struct X{};
  2.  
  3. template<class T>
  4. decltype(X() == int()) f(T const&){ return true; }
  5.  
  6. int main(void) {
  7. X x;
  8. f(x);
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:21: error: no match for 'operator==' in 'X() == int()'
stdout
Standard output is empty