LaurentGomila/SFML — Issue #163: operator<< functions for certain classes
Author: RetroX
Created: 2012-01-29 17:35:20+00:00
State: open

For example:
```
ostream& operator<<(ostream& s, const sf::Rect& rect)
{
return s << "{" <<
rect.Left << ", " <<
rect.Right << ", " <<
rect.Width << ", " <<
rect.Height <<
"}";
}
```

Having the ability to just cout << some_rect << endl; would be extremely helpful for debugging programs. This could also be applied to the sf::Vector*, sf::Color, and sf::View classes. There are probably other places where this could be applied, but those are just a few places that I thought that it would be useful.