mirror of https://github.com/CGAL/cgal
Remove asserts that avoir to increment/decrement iterators on removed elements.
This commit is contained in:
parent
a423368960
commit
a0b569b83d
|
|
@ -1077,8 +1077,8 @@ namespace internal {
|
||||||
{
|
{
|
||||||
CGAL_assertion_msg(m_ptr.p != NULL,
|
CGAL_assertion_msg(m_ptr.p != NULL,
|
||||||
"Incrementing a singular iterator or an empty container iterator ?");
|
"Incrementing 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,
|
||||||
"Incrementing an invalid iterator.");
|
"Incrementing an invalid iterator."); */
|
||||||
increment();
|
increment();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
@ -1087,9 +1087,9 @@ namespace internal {
|
||||||
{
|
{
|
||||||
CGAL_assertion_msg(m_ptr.p != NULL,
|
CGAL_assertion_msg(m_ptr.p != NULL,
|
||||||
"Decrementing a singular iterator or an empty container iterator ?");
|
"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,
|
|| DSC::type(m_ptr.p) == DSC::START_END,
|
||||||
"Decrementing an invalid iterator.");
|
"Decrementing an invalid iterator.");*/
|
||||||
decrement();
|
decrement();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -937,8 +937,8 @@ namespace CCC_internal {
|
||||||
{
|
{
|
||||||
CGAL_assertion_msg(m_ptr.p != NULL,
|
CGAL_assertion_msg(m_ptr.p != NULL,
|
||||||
"Incrementing a singular iterator or an empty container iterator ?");
|
"Incrementing 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,
|
||||||
"Incrementing an invalid iterator.");
|
"Incrementing an invalid iterator."); */
|
||||||
increment();
|
increment();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
@ -947,9 +947,9 @@ namespace CCC_internal {
|
||||||
{
|
{
|
||||||
CGAL_assertion_msg(m_ptr.p != NULL,
|
CGAL_assertion_msg(m_ptr.p != NULL,
|
||||||
"Decrementing a singular iterator or an empty container iterator ?");
|
"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,
|
|| CCC::type(m_ptr.p) == CCC::START_END,
|
||||||
"Decrementing an invalid iterator.");
|
"Decrementing an invalid iterator."); */
|
||||||
decrement();
|
decrement();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue