
16 Jun
2005
16 Jun
'05
11:19 a.m.
Peter Dimov wrote:
If I replace throw_exception with "throw", the tests fails later, and if I replace all throw_exception's with throw in the module, test passes.
So I have two questions:
1. Did anybody else had this problem with throw_exception 2. If throw_exception function does not work with borland, maybe it should become macro on that compiler?
throw_exception can't be a macro because it can be called with boost:: qualification.
But it's possible to introduce new macro, say BOOST_THROW.
In fact, try using boost::throw_exception in the code above; I remember hitting a similar code generation bug in Boost.Bind, take a look at the beginning of boost/bind.hpp.
Thanks for the hint! The problem is gone now. - Volodya