[Exceptional C++ Style] Item 13: A Pragmatic Look at Exceptio nSpecifications
David Sykes
d.sykes at pindar.com
Tue Dec 7 06:18:54 EST 2004
> I think it would be better if exception specifications were
> enforced at
> compile time. What do people think?
>
Don't you have the same problem you have with const that as soon as you
enter a function that cannot throw then every function it calls must be
defined as unable to throw anything
void MyFunc() throw()
{
printf("Hello world"); // We know this won't throw, but can
the compiler?
}
David Sykes
[ *** LongSig auto truncated *** ]
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
---
More information about the Effective-cpp
mailing list