struct Foo { explicit Foo(int x) : x_(x) {} int x_; }; int main() { Foo(1) == Foo(1); }
Standard input is empty
prog.cpp: In function 'int main()':
prog.cpp:9:9: error: no match for 'operator==' (operand types are 'Foo' and 'Foo')
Foo(1) == Foo(1);
^
Standard output is empty