Skip to content

Commit

Permalink
fix compilation by including header in which std::find is defined
Browse files Browse the repository at this point in the history
Compilation breaks when the `algorithm` header isn't included
indirectly anymore. This happens with certain combinations of
compiler/C++ library/C++ mode, e.g. clang++ 17/libstdc++ 14.1/C++20
  • Loading branch information
mbunkus committed Jun 9, 2024
1 parent 6e97926 commit f865b64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/KaxCues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
\file
\author Steve Lhomme <robux4 @ users.sf.net>
*/
#include <algorithm>
#include <cassert>

#include "matroska/KaxCues.h"
Expand Down
2 changes: 2 additions & 0 deletions src/KaxSeekHead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
\file
\author Steve Lhomme <robux4 @ users.sf.net>
*/
#include <algorithm>

#include "matroska/KaxSeekHead.h"
#include "matroska/KaxContexts.h"
#include "matroska/KaxSegment.h"
Expand Down

0 comments on commit f865b64

Please sign in to comment.