mirror of
https://github.com/boostorg/assert.git
synced 2025-08-16 12:30:56 +02:00
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)
|
void MyContainer::erase(iterator i)
|
||||||
{
|
{
|
||||||
//Some sanity checks, data must be ordered
|
//Some sanity checks, data must be ordered
|
||||||
#ifndef BOOST_ASSERT_IS_EMPTY
|
#ifndef BOOST_ASSERT_IS_VOID
|
||||||
if(i != c.begin()){
|
if(i != c.begin()){
|
||||||
iterator prev = i;
|
iterator prev = i;
|
||||||
--prev;
|
--prev;
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
#include <boost/assert.hpp>
|
#include <boost/assert.hpp>
|
||||||
|
|
||||||
#ifndef BOOST_ASSERT_IS_VOID
|
#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
|
#endif
|
||||||
|
|
||||||
// BOOST_DISABLE_ASSERTS, !NDEBUG
|
// BOOST_DISABLE_ASSERTS, !NDEBUG
|
||||||
|
Reference in New Issue
Block a user