Replacing assert with BOOST_ASSERT