Carsten Fuchs wrote:
Hello all,
what please is the recommended (most future-safe, standard-compliant
etc.) practise for exception specifications?
I did some googling, and the trend seemed to be "don't use exception
specifications at all".
That's still pretty much the case.
Well, I was wondering if this is still valid, or
if there are newer trends in the standard that (partially) solve the
related problems.
There are some compilers that can optimize some code if you use an
empty exception specification, and based on that a few people recommend
that particular use in limited circumstances. IMO, this is rarely
really justified. From what I've seen so far, it's usually quite a bit
of work for a fairly minor optimization, and a fair amount of potential
for problems as well.
IOW, I'm still fairly firmly in the "don't use them" camp, but it seems
only fair to say that there is another camp out there, and even if you
don't hear from any of them directly, you should be aware that there's
_some_ difference of opinion on the subject.
--
Later,
Jerry.
The universe is a figment of its own imagination.