Throwing string literals and the Temple Of Doom
I’m hardly a behemoth of jollity back in the world of C++ at the moment. Much as a think it is an excellent language, I am reminded that is so open to abuse. Take the following example I recently stumbled across. try { … … throw “Floating point error” … … } catch(const char *e) { string strError(e); if (strError [...]


