Skip to content

Fix missing <algorithm> include in febcode/types.cpp - #136

Open
karinaurazova wants to merge 1 commit into
febiosoftware:developfrom
karinaurazova:fix/missing-algorithm-include
Open

karinaurazova wants to merge 1 commit into
febiosoftware:developfrom
karinaurazova:fix/missing-algorithm-include

Conversation

@karinaurazova

Copy link
Copy Markdown

Summary

Add an explicit #include <algorithm> to febcode/types.cpp.

Problem

The file uses std::find_if without including its required standard header. This causes compilation failures on toolchains where <algorithm> is not included transitively.

Fix

Add the missing include. No functional changes.

Verification

  • Reproduced the compilation failure with GCC 14.2 and Clang 17 using C++17.
  • Confirmed successful compilation after the fix.
  • Verified that the patch changes only one file and adds one line.

This improves portability across C++ toolchains.

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.

1 participant