Skip to content

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

@heinezen

Description

@heinezen
/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>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBehaving differently as it should behave

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions