diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-09-16 18:00:10 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-09-16 18:00:10 +0000 |
commit | cefbaa26062e228262a39110ecabf7b031c69100 (patch) | |
tree | 426121df45c7232ad98a96667af4fabdccb03377 /searchlib/src | |
parent | c48c65becbca835d03ebb75dcbc828d13eb0fe75 (diff) |
Avoid including smallvector in arrayref, then it is included 'everywhere'.
Diffstat (limited to 'searchlib/src')
3 files changed, 4 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/docstore/logdatastore.cpp b/searchlib/src/vespa/searchlib/docstore/logdatastore.cpp index 8531ea66d38..4165d13d3fd 100644 --- a/searchlib/src/vespa/searchlib/docstore/logdatastore.cpp +++ b/searchlib/src/vespa/searchlib/docstore/logdatastore.cpp @@ -11,6 +11,7 @@ #include <vespa/vespalib/util/exceptions.h> #include <vespa/vespalib/util/size_literals.h> #include <thread> +#include <cassert> #include <vespa/log/log.h> LOG_SETUP(".searchlib.docstore.logdatastore"); diff --git a/searchlib/src/vespa/searchlib/tensor/hnsw_index_loader.hpp b/searchlib/src/vespa/searchlib/tensor/hnsw_index_loader.hpp index 11500c0b7f6..4fd75bb2fec 100644 --- a/searchlib/src/vespa/searchlib/tensor/hnsw_index_loader.hpp +++ b/searchlib/src/vespa/searchlib/tensor/hnsw_index_loader.hpp @@ -5,6 +5,7 @@ #include "hnsw_index_loader.h" #include "hnsw_graph.h" #include <vespa/searchlib/util/fileutil.h> +#include <cassert> namespace search::tensor { @@ -18,7 +19,7 @@ HnswIndexLoader<ReaderType>::init() } template <typename ReaderType> -HnswIndexLoader<ReaderType>::~HnswIndexLoader() {} +HnswIndexLoader<ReaderType>::~HnswIndexLoader() = default; template <typename ReaderType> HnswIndexLoader<ReaderType>::HnswIndexLoader(HnswGraph& graph, std::unique_ptr<ReaderType> reader) diff --git a/searchlib/src/vespa/searchlib/tensor/hnsw_index_saver.cpp b/searchlib/src/vespa/searchlib/tensor/hnsw_index_saver.cpp index 8ac24d08dcf..29218b47f53 100644 --- a/searchlib/src/vespa/searchlib/tensor/hnsw_index_saver.cpp +++ b/searchlib/src/vespa/searchlib/tensor/hnsw_index_saver.cpp @@ -4,6 +4,7 @@ #include "hnsw_graph.h" #include <vespa/searchlib/util/bufferwriter.h> #include <limits> +#include <cassert> namespace search::tensor { |