Skip to content

tests: include <algorithm> in prerouter_admission_test - #221

Merged
shuk777 merged 1 commit into
Edge0-AI:mainfrom
meal:fix/gcc15-prerouter-admission-algorithm
Nov 16, 2026
Merged

shuk777 merged 1 commit into
Edge0-AI:mainfrom
meal:fix/gcc15-prerouter-admission-algorithm

Conversation

@meal

@meal meal commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Problem

cmake --build --preset cpu fails on GCC 15:

tests/unit/models/edge0_35b/prerouter_admission_test.cpp:22:58: error: 'remove_if' is not a member of 'std'
tests/unit/models/edge0_35b/prerouter_admission_test.cpp:47:24: error: no matching function for call to 'find(...)'

The test uses std::remove_if and std::find without including <algorithm>. Same class of problem as #215, which missed this file.

Fix

Add #include <algorithm> to the test.

Verification

  • cmake --build --preset cpu -- -k 0 showed this as the only failure; the build now exits 0.
  • ctest --preset cpu -R prerouter_admission passes.

🤖 Generated with Claude Code

@shuk777 shuk777 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shuk777
shuk777 merged commit dc0ff96 into Edge0-AI:main Nov 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants