
13 Sep
2005
13 Sep
'05
2:26 p.m.
I'm looking for references in boost library tests as to how to use BOOST_ASSERT correctly. I thus found the test_diamond tests in boost/serialization. It appears that the way BOOST_ASSERT is used there doesn't do anything in release mode, i.e. the expression isn't evaluated at all. (I modified the expression and the test still passed.) (As it happens, I was looking specifically for applications of http://www.boost.org/libs/utility/assert.html, as I want to use it in my own tests.) Regards, Stefan