diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-09-19 11:16:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-19 11:16:47 +0200 |
commit | f1828ccdfb54e6dcc167a488d9185f171754a654 (patch) | |
tree | 5d6217b8662d53f828498ecc254d60a35c35dd7d /searchlib/src/vespa | |
parent | 6d350b26677b5d3007b85f1efe288a417164d328 (diff) | |
parent | cefbaa26062e228262a39110ecabf7b031c69100 (diff) |
Merge pull request #24102 from vespa-engine/balder/avoid-pulling-in-small-vector-everywhere
Avoid including smallvector in arrayref, then it is included 'everywh…
Diffstat (limited to 'searchlib/src/vespa')
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 { |