Need iostream include for std::ios::pos_type.