Assuming the
optionvector
class provides a
string
cast operator, you might write
os << mIt->first << " " << static_cast<string>(mIt->second) << endl;
or (if your compiler doesn't like the
static_cast
keyword)
os << mIt->first << " " << (string) mIt->second << endl;