Skip to content

Commit

Permalink
use lower_bound on sorted vector
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 committed Mar 20, 2023
1 parent 3a8e59a commit 2aa7515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manifold/src/sort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ void Manifold::Impl::SortVerts() {
// Verts were flagged for removal with NaNs and assigned kNoCode to sort
// them to the end, which allows them to be removed.
const int newNumVert =
find<decltype(vertMorton.begin())>(policy, vertMorton.begin(),
lower_bound<decltype(vertMorton.begin())>(policy, vertMorton.begin(),
vertMorton.end(), kNoCode) -
vertMorton.begin();
vertPos_.resize(newNumVert);
Expand Down

0 comments on commit 2aa7515

Please sign in to comment.