Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-06-16 06:19:00


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk