Try to fix the segfault

See https://github.com/CGAL/cgal/pull/2072#issuecomment-304310586
This commit is contained in:
Laurent Rineau 2017-05-26 17:53:52 +02:00
parent 1d109f9abd
commit d1221a6eae
1 changed files with 4 additions and 4 deletions

View File

@ -1022,18 +1022,18 @@ namespace internal {
// or a conversion from iterator to const_iterator.
CC_iterator (const iterator &it)
#ifdef CGAL_COMPACT_CONTAINER_DEBUG_TIME_STAMP
: ts(Time_stamper_impl::time_stamp(&(*it)))
: ts(Time_stamper_impl::time_stamp(it.operator->()))
#endif
{
m_ptr.p = &(*it);
m_ptr.p = it.operator->();
}
// Same for assignment operator (otherwise MipsPro warns)
CC_iterator & operator= (const iterator &it)
{
m_ptr.p = &(*it);
m_ptr.p = it.operator->();
#ifdef CGAL_COMPACT_CONTAINER_DEBUG_TIME_STAMP
ts = Time_stamper_impl::time_stamp(&(*it));
ts = Time_stamper_impl::time_stamp(it.operator->());
#endif
return *this;
}