All the other posts tell me to change my compiler, but I can't since I'm supposed to be working with this compiler. Please help!
void foo(ostringstream &os) {
ostringstream temp;
temp << 0;
//do something
os.swap(temp);
}
^I can' really upload the do-something part, since it's a part of a school project, but the compiler is giving me an error at: os.swap(temp);
I also tried the =operator and that didn't work as well