J
JKop
Today I wrote a function that returned an "std:stringstream" by value.
I compiled it with G++.
It was throwing exceptions at run-time and closing.
So I look through the code, and I look and I look...
I forgot to put in the return statement in the aforementioned funtion, ie.
it had no return statement.
How the hell does this compile?! Does the Standard "allow" this to compile?
What exactly would my function return, a nameless default object, ie.
std:stringstream()?
-JKop
I compiled it with G++.
It was throwing exceptions at run-time and closing.
So I look through the code, and I look and I look...
I forgot to put in the return statement in the aforementioned funtion, ie.
it had no return statement.
How the hell does this compile?! Does the Standard "allow" this to compile?
What exactly would my function return, a nameless default object, ie.
std:stringstream()?
-JKop