Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::find_if not found when compiling with gcc 14 #1651

Closed
heinezen opened this issue May 24, 2024 · 0 comments · Fixed by #1652
Closed

std::find_if not found when compiling with gcc 14 #1651

heinezen opened this issue May 24, 2024 · 0 comments · Fixed by #1652
Labels
bug Behaving differently as it should behave

Comments

@heinezen
Copy link
Member

/media/christoph/LinuxDat/Git-Repositories/openage-testing/libopenage/main/demo/interactive/interactive.cpp: In function ‘void openage::main::tests::interactive::demo(const openage::util::Path&)’:
/media/christoph/LinuxDat/Git-Repositories/openage-testing/libopenage/main/demo/interactive/interactive.cpp:21:32: error: ‘find_if’ is not a member of ‘std’; did you mean ‘find’?
   21 |         auto mod_engine = std::find_if(mods.begin(), mods.end(), [](const assets::ModpackInfo &mod) {
      |                                ^~~~~~~
      |                                find
make[3]: *** [libopenage/CMakeFiles/libopenage.dir/build.make:2546: libopenage/CMakeFiles/libopenage.dir/main/demo/interactive/interactive.

I think this might be just a missing include of <algorithm>.

@heinezen heinezen added the bug Behaving differently as it should behave label May 24, 2024
@heinezen heinezen linked a pull request May 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Behaving differently as it should behave
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant