Have you overloaded the << operator as a friend of ostream?