mirror of https://github.com/CGAL/cgal
Use named constructor to resolve ambiguity
This commit is contained in:
parent
2d1afb8895
commit
739a8b66e8
|
|
@ -910,12 +910,11 @@ namespace internal {
|
|||
m_ptr = nullptr;
|
||||
}
|
||||
|
||||
CC_iterator (pointer p)
|
||||
#ifdef CGAL_COMPACT_CONTAINER_DEBUG_TIME_STAMP
|
||||
: ts(0)
|
||||
#endif
|
||||
static CC_iterator create_from_pointer (pointer p)
|
||||
{
|
||||
m_ptr.p = p;
|
||||
CC_iterator out;
|
||||
out.m_ptr.p = p;
|
||||
return out;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@ protected:
|
|||
|
||||
void deallocate (Node* n)
|
||||
{
|
||||
base.erase (typename Base::iterator(n));
|
||||
base.erase (Base::iterator::create_from_pointer(n));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ template <typename Vis>
|
|||
void No_intersection_surface_sweep_2<Vis>::deallocate_event(Event* event)
|
||||
{
|
||||
// Remove the event from the set of allocated events.
|
||||
m_allocated_events.erase(Allocated_events_iterator(event));
|
||||
m_allocated_events.erase(Allocated_events_iterator::create_from_pointer(event));
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue