forked from boostorg/assert
Fixed documentation and test-case typos, after Peter Dimov's review of the PR#5 (https://github.com/boostorg/assert/pull/5)
This commit is contained in:
@@ -122,7 +122,7 @@
|
||||
void MyContainer::erase(iterator i)
|
||||
{
|
||||
//Some sanity checks, data must be ordered
|
||||
#ifndef BOOST_ASSERT_IS_EMPTY
|
||||
#ifndef BOOST_ASSERT_IS_VOID
|
||||
if(i != c.begin()){
|
||||
iterator prev = i;
|
||||
--prev;
|
||||
|
@@ -27,7 +27,7 @@
|
||||
#include <boost/assert.hpp>
|
||||
|
||||
#ifndef BOOST_ASSERT_IS_VOID
|
||||
#error "Error: BOOST_ASSERT should be void in NDEBUG"
|
||||
#error "BOOST_ASSERT should NOT be void if NDEBUG is not defined"
|
||||
#endif
|
||||
|
||||
// BOOST_DISABLE_ASSERTS, !NDEBUG
|
||||
|
Reference in New Issue
Block a user