Skip to content

Commit

Permalink
add validation for the range case (#8410)
Browse files Browse the repository at this point in the history
Fixes  #6840

@efifogel I did not use expensive assertion as you mentioned because it
is already done this way in intersection and symmetric_difference.
  • Loading branch information
sloriot authored Aug 19, 2024
2 parents 078fe18 + 5b73111 commit e80fe27
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ class Gps_on_surface_base_2
unsigned int i = 1;
for (InputIterator itr = begin; itr != end; ++itr, ++i)
{
ValidationPolicy::is_valid((*itr), *m_traits);
arr_vec[i].first = new Aos_2(m_traits);
_insert(*itr, *(arr_vec[i].first));
}
Expand All @@ -666,6 +667,7 @@ class Gps_on_surface_base_2
unsigned int i = 1;
for (InputIterator itr = begin; itr!=end; ++itr, ++i)
{
ValidationPolicy::is_valid((*itr), *m_traits);
arr_vec[i].first = new Aos_2(m_traits);
_insert(*itr, *(arr_vec[i].first));
}
Expand Down

0 comments on commit e80fe27

Please sign in to comment.