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 |