Dynamic allocation of an exception (as in this example) is not a good idea:
class Err{ public: Err(const char * description); }; void f() { if (disaster) throw new Err("failed"); //exception object is dynamically allocated on the free store //
Please enable Javascript in your browser, before you post the comment! Now Javascript is disabled.
Your name/nickname
Your email
WebSite
Subject
(Maximum characters: 1200). You have 1200 characters left.