Is there a way to truncate 1 or more characters from a constructed
std::ostringstream? I have situations where I build a stream
(data_value1, comma, data_value2, comma, etc.) and when complete I want
to erase the last comma before I process the constructed variable.
Currently, I convert the stream to a std::string and erase the last
character, but that's clumsy.
Can I do this while it's an ostringstream? Please advise. TIA
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus