diff --git a/STL_Extension/include/CGAL/Compact_container.h b/STL_Extension/include/CGAL/Compact_container.h index 8779c1e036a..216ea85042e 100644 --- a/STL_Extension/include/CGAL/Compact_container.h +++ b/STL_Extension/include/CGAL/Compact_container.h @@ -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; }