Remove asserts that avoir to increment/decrement iterators on removed elements.

This commit is contained in:
Guillaume Damiand 2015-06-17 09:51:20 +02:00
parent a423368960
commit a0b569b83d
2 changed files with 8 additions and 8 deletions

View File

@ -1077,8 +1077,8 @@ namespace internal {
{
CGAL_assertion_msg(m_ptr.p != NULL,
"Incrementing a singular iterator or an empty container iterator ?");
CGAL_assertion_msg(DSC::type(m_ptr.p) == DSC::USED,
"Incrementing an invalid iterator.");
/* CGAL_assertion_msg(DSC::type(m_ptr.p) == DSC::USED,
"Incrementing an invalid iterator."); */
increment();
return *this;
}
@ -1087,9 +1087,9 @@ namespace internal {
{
CGAL_assertion_msg(m_ptr.p != NULL,
"Decrementing a singular iterator or an empty container iterator ?");
CGAL_assertion_msg(DSC::type(m_ptr.p) == DSC::USED
/*CGAL_assertion_msg(DSC::type(m_ptr.p) == DSC::USED
|| DSC::type(m_ptr.p) == DSC::START_END,
"Decrementing an invalid iterator.");
"Decrementing an invalid iterator.");*/
decrement();
return *this;
}

View File

@ -937,8 +937,8 @@ namespace CCC_internal {
{
CGAL_assertion_msg(m_ptr.p != NULL,
"Incrementing a singular iterator or an empty container iterator ?");
CGAL_assertion_msg(CCC::type(m_ptr.p) == CCC::USED,
"Incrementing an invalid iterator.");
/* CGAL_assertion_msg(CCC::type(m_ptr.p) == CCC::USED,
"Incrementing an invalid iterator."); */
increment();
return *this;
}
@ -947,9 +947,9 @@ namespace CCC_internal {
{
CGAL_assertion_msg(m_ptr.p != NULL,
"Decrementing a singular iterator or an empty container iterator ?");
CGAL_assertion_msg(CCC::type(m_ptr.p) == CCC::USED
/* CGAL_assertion_msg(CCC::type(m_ptr.p) == CCC::USED
|| CCC::type(m_ptr.p) == CCC::START_END,
"Decrementing an invalid iterator.");
"Decrementing an invalid iterator."); */
decrement();
return *this;
}