Boost logo

Boost Users :

From: Kevin Wheatley (hxpro_at_[hidden])
Date: 2005-06-08 03:22:48


Kevin Wheatley wrote:
> Unfortunately, this works for my code but not for 3rd party libraries
> (brain dead though they may be :-) I was thinking of a
> THROWING_ASSERT() or somthing which would do just as you suggested for
> our code. I just felt it would be good to test the 3rd party in the
> same way as our own code.

So ignoring the 3rd party code for now I've decided to implement
something using BOOST_ASSERT() and BOOST_ENABLE_ASSERT_HANDLER, then
having assertion_failed() throw the exception. The test code then
expects the throw and the developers are happy (no errors :-)

Thanks

Kevin

-- 
| Kevin Wheatley, Cinesite (Europe) Ltd | Nobody thinks this      |
| Senior Technology                     | My employer for certain |
| And Network Systems Architect         | Not even myself         |

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