Skip to content

Commit f865b64

Browse files
committed
fix compilation by including header in which std::find is defined
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
1 parent 6e97926 commit f865b64

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/KaxCues.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
\file
66
\author Steve Lhomme <robux4 @ users.sf.net>
77
*/
8+
#include <algorithm>
89
#include <cassert>
910

1011
#include "matroska/KaxCues.h"

src/KaxSeekHead.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
\file
66
\author Steve Lhomme <robux4 @ users.sf.net>
77
*/
8+
#include <algorithm>
9+
810
#include "matroska/KaxSeekHead.h"
911
#include "matroska/KaxContexts.h"
1012
#include "matroska/KaxSegment.h"

0 commit comments

Comments
 (0)