aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-02-26 22:56:39 +0100
committerTor Egge <Tor.Egge@online.no>2022-02-26 22:56:39 +0100
commitfe8005e94f767a110ad8e89a3857e66fbbc56dbc (patch)
treebbe24f08065fde34bcfbbcd20b8a1493226c8d87 /searchlib
parent53a89f39683a68ff0c8a9650eb7edb1b37768d22 (diff)
Add include to get declaration of std::sort (searchlib).
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/changevector.hpp1
-rw-r--r--searchlib/src/vespa/searchlib/common/indexmetainfo.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/changevector.hpp b/searchlib/src/vespa/searchlib/attribute/changevector.hpp
index 43787bf8bd4..a81c14aa85c 100644
--- a/searchlib/src/vespa/searchlib/attribute/changevector.hpp
+++ b/searchlib/src/vespa/searchlib/attribute/changevector.hpp
@@ -5,6 +5,7 @@
#include "changevector.h"
#include <vespa/vespalib/util/memoryusage.h>
#include <vespa/vespalib/util/alloc.h>
+#include <algorithm>
namespace search {
diff --git a/searchlib/src/vespa/searchlib/common/indexmetainfo.cpp b/searchlib/src/vespa/searchlib/common/indexmetainfo.cpp
index f33b571f263..60d04d7e3ad 100644
--- a/searchlib/src/vespa/searchlib/common/indexmetainfo.cpp
+++ b/searchlib/src/vespa/searchlib/common/indexmetainfo.cpp
@@ -5,6 +5,7 @@
#include <vespa/vespalib/util/stringfmt.h>
#include <vespa/vespalib/util/guard.h>
#include <cassert>
+#include <algorithm>
#include <vespa/log/log.h>
LOG_SETUP(".indexmetainfo");