fork(1) download
  1. #include <iostream>
  2.  
  3. class TST
  4. {
  5. public:
  6. operator bool()
  7. {
  8. return true;
  9. }
  10.  
  11. void operator<< (int x)
  12. {
  13. std::cout << x;
  14. }
  15. };
  16.  
  17. int main()
  18. {
  19. TST x;
  20. x >> 3;
  21. }
  22.  
Success #stdin #stdout 0s 2848KB
stdin
Standard input is empty
stdout
Standard output is empty