From: Mark Storer (mstorer_at_[hidden])
Date: 2002-09-18 15:03:58


If efficiency is your goal, exceptions are not the answer. Just enabling
exceptions at compile time makes a noticable performance hit. Actually
throwing an exception can gobble up a 1000 cycles, give or take. That's per
throw. If you catch and throw again, you'll pay again.

Now if you've got more than a hundred or so entries left to go, exceptions
really are the greener grass.

What's wrong with 'return', perhaps along-side some sort of 'done' status
variable? I'm only vaguely familiar with the vistor pattern, but these
would seem to be the obvious choice.

--Mark Storer
  Software Engineer
  Cardiff Software

#include <disclaimer>
typedef std::disclaimer<Cardiff> Discard;