Skip to content

Commit

Permalink
Add missing <algorithm> include for std::find (#530)
Browse files Browse the repository at this point in the history
GCC 14 drops some transitive includes within libstdc++.

Explicitly include <algorithm> for std::find.
  • Loading branch information
thesamesam authored Jun 8, 2023
1 parent 3be8c91 commit 9f9fb07
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/citnames/source/semantic/ToolAny.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#include "ToolAny.h"

#include <algorithm>

namespace cs::semantic {

ToolAny::ToolAny(ToolAny::ToolPtrs &&tools, std::list<fs::path> &&to_exclude) noexcept
Expand Down
2 changes: 2 additions & 0 deletions source/citnames/source/semantic/ToolExtendingWrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#include "ToolExtendingWrapper.h"

#include <algorithm>

namespace cs::semantic {

ToolExtendingWrapper::ToolExtendingWrapper(CompilerWrapper &&compilers_to_recognize) noexcept
Expand Down
1 change: 1 addition & 0 deletions source/libflags/source/Flags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "libflags/Flags.h"

#include <algorithm>
#include <cstring>
#include <iostream>
#include <optional>
Expand Down
1 change: 1 addition & 0 deletions source/libsys/source/Guard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "Guard.h"
#include "libsys/Environment.h"

#include <algorithm>
#include <cstring>
#include <functional>

Expand Down
1 change: 1 addition & 0 deletions source/libsys/source/Process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "libsys/Errors.h"
#include "Guard.h"

#include <algorithm>
#include <cerrno>
#include <csignal>
#include <cstdlib>
Expand Down

0 comments on commit 9f9fb07

Please sign in to comment.