Boost logo

Boost Users :

From: Tan Kwee Heong (tan.k.h_at_[hidden])
Date: 2005-06-23 01:27:15


Hi,

The costs of throwing an exception is well described in Scott Meyer's Item
15 "More Effective C++". The key guidelines
presented were :
         a) ... exceptions should be rare. After all, they indicate the
occurrence of events that are exceptional.
         b) Compared to a normal function return, returning from a function
by throwing an exception may be as much as three orders of magnitude slower.

I would hope the "TerminatorFunc" or predicate would be added, at some point
in time.

"Thomas Costa" <oohrah_at_[hidden]> wrote in message
news:97CBE416-AB60-4ADD-804D-4C6BDFB6F5C9_at_mac.com...
> Will a future version of BGL have a "TerminatorFunc" in all the
> visitor types?
>
> Throwing an exception as part of the "normal" flow of an algorithm
> seems to go against most people's C++ philosophy.
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net