I'd use a std::ostringstream because you don't use (seem to need) the formatting capabilities of std::istringstream.
- I'd use a
std::ostringstreambecause you don't use (seem to need) the formatting capabilities ofstd::istringstream. - What happens when formatting fails? Can you check for failure?