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:
Ion Gaztañaga
2015-07-23 10:47:05 +02:00
parent abf5a45b09
commit 9f21dfea1b
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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