#include <iostream>
usingnamespace std;
class foo {
public:
int a;
foo(){};
};
ostream& operator<<(ostream& output, const foo& p) {
for (int i=0; i++; i< 5)
// This is not printing anything at all.
// It also returns the warning "3rd expression in for has no effect"
output << i << " " ;
return output;
}
int main()
{
foo p;
cout <<"There goes foo " << p;
return 0;
}