ostringstream inherits from ostream