I know how to do this in other languages, but not C++, which I am forced to use here.
I have a Set of Strings that I\'m printing to out in a list, and they need a co
There is a little problem with the ++ operator you are using.
++
You can try:
if (++iter != keywords.end()) out << ", "; iter--;
This way, ++ will be evaluated before compare the iterator with keywords.end().
keywords.end()