Skip to content

Compact_container: add an overload s_iterator_to(pointer) #8260

Open
@lrineau

Description

@lrineau

Note that the UBAN sanitizer does not like that code, for a null cell pointer:

Cell_handle get() const
{
return Triangulation_data_structure::Cell_range::s_iterator_to(*m_cell);
}

Fixed by 9cd4535. Now:

Cell_handle get() const
{
if(m_cell == nullptr)
return {};
else
return Triangulation_data_structure::Cell_range::s_iterator_to(*m_cell);
}

Maybe s_iterator_to in the compact container should have an overload for pointers, to avoid that extract test for null.

Originally posted by @lrineau in #8248 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions