
18 Jun
2009
18 Jun
'09
1:32 p.m.
Thorsten Ottosen:
Hi,
The current difinition of BOOST_ASSERT is a pain to use with the debugger and Boost.Test because it doesn't trigger a break-point.
Does anyone object to defining it like this in <boost/assert.hpp>
#if (BOOST_MSVC >= 1400) #include <crtdbg.h> #define BOOST_ASSERT _ASSERTE #endif
I'm not sure I understand. BOOST_ASSERT is just assert by default, right? assert does trigger a breakpoint by default, right? Boost.Test intentionally disables the assert breakpoint by default so that it can fail the test case and not require human intervention, right? What am I missing?