Skip to content

Commit

Permalink
Fix Windows action (#90)
Browse files Browse the repository at this point in the history
* Add erase after remove in std::vector to check Windows CI.

* Remove Debug build type in Windows CI.
  • Loading branch information
iglesias authored Apr 19, 2024
1 parent 7226b75 commit 0ad0861
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
build_type: [Debug, Release]
build_type: [Release]

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion include/tapkee/neighbors/neighbors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ Neighbors find_neighbors_vptree_impl(const RandomAccessIterator& begin, const Ra
for (RandomAccessIterator i = begin; i != end; ++i)
{
LocalNeighbors local_neighbors = tree.search(i, k + 1);
std::remove(local_neighbors.begin(), local_neighbors.end(), i - begin);
auto it = std::remove(local_neighbors.begin(), local_neighbors.end(), i - begin);
local_neighbors.erase(it, local_neighbors.end());
neighbors.push_back(local_neighbors);
}

Expand Down

0 comments on commit 0ad0861

Please sign in to comment.