
5 Jul
2006
5 Jul
'06
9:23 p.m.
Oleg,
boost::throw_<read_error>();
It would be clearly seen in code and understandable.
Note that the current boost::failed function template does not throw an exception; it returns an unnamed temporary, which is then used in the throw-expression, like this: throw failed<foo>(); The reason is to allow exception info to be added tirectly in the throw-expression: throw failed<foo>() << info1() << info2() .... ; I completely agree that "failed" is not a good word for this, but I couldn't come up with anything better. --Emil