fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Foo {
  5. void operator++() const {
  6. cout << "preincrementation? I don't think so...";
  7. }
  8. };
  9.  
  10. int main() {
  11. Foo foo;
  12. ++foo;
  13. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
preincrementation? I don't think so...