Just a quick question: what is so illegal about the following line of code? That is, why would it throw an exception?
If I define someStr first, and then assign the null character second, I have no problem. Why is this? Aren't the two equivalent, but I've just shifted the assignment down a bit?Code:std::string someStr='\0';