virtual const char *what() const throw() {
std::stringstream output;
output << "Error at line " << line+1 << ", column " << column+1 << ":
" << msg;
return output.str().c_str();
}
returns a pointer to the peace of memory which will be deallocated after
deleting temporary object 'output'.
Original issue reported on code.google.com by Vasily.S...@gmail.com on 25 Jul 2009 at 7:18
Original issue reported on code.google.com by
Vasily.S...@gmail.com
on 25 Jul 2009 at 7:18