mirror of https://github.com/CGAL/cgal
Try to fix the segfault
See https://github.com/CGAL/cgal/pull/2072#issuecomment-304310586
This commit is contained in:
parent
1d109f9abd
commit
d1221a6eae
|
|
@ -1022,18 +1022,18 @@ namespace internal {
|
||||||
// or a conversion from iterator to const_iterator.
|
// or a conversion from iterator to const_iterator.
|
||||||
CC_iterator (const iterator &it)
|
CC_iterator (const iterator &it)
|
||||||
#ifdef CGAL_COMPACT_CONTAINER_DEBUG_TIME_STAMP
|
#ifdef CGAL_COMPACT_CONTAINER_DEBUG_TIME_STAMP
|
||||||
: ts(Time_stamper_impl::time_stamp(&(*it)))
|
: ts(Time_stamper_impl::time_stamp(it.operator->()))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
m_ptr.p = &(*it);
|
m_ptr.p = it.operator->();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Same for assignment operator (otherwise MipsPro warns)
|
// Same for assignment operator (otherwise MipsPro warns)
|
||||||
CC_iterator & operator= (const iterator &it)
|
CC_iterator & operator= (const iterator &it)
|
||||||
{
|
{
|
||||||
m_ptr.p = &(*it);
|
m_ptr.p = it.operator->();
|
||||||
#ifdef CGAL_COMPACT_CONTAINER_DEBUG_TIME_STAMP
|
#ifdef CGAL_COMPACT_CONTAINER_DEBUG_TIME_STAMP
|
||||||
ts = Time_stamper_impl::time_stamp(&(*it));
|
ts = Time_stamper_impl::time_stamp(it.operator->());
|
||||||
#endif
|
#endif
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue