[Exceptional C++ Style] Item 22: To new, Perchance to throw, Part 2: Pragmatic Issues in Memory Management

Paul Grenyer paul at paulgrenyer.co.uk
Fri Jan 21 05:11:37 EST 2005


Hi

> Some systems may compile with exceptions disabled, and therefore can only
> safely use the nothrow version. No, that's not conformant, but, er, that's
> life, too.

So what actually happens? Would you get a compile time error/warning as you
do with RTTI? Or a runtime error? Obviously there isn't going to be a single
answer to this, but what happens in the implementation you're thinking
about?

Regards
Paul

Paul Grenyer
email: paul at paulgrenyer.co.uk
web: http://www.paulgrenyer.co.uk
articles: http://www.paulgrenyer.dyndns.org/articles/

"15 miles to the love shack...."




More information about the Effective-cpp mailing list