diff options
author | Arne H Juul <arnej27959@users.noreply.github.com> | 2021-03-18 14:37:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 14:37:51 +0100 |
commit | 949e8235ead29dfa13d9aca8b36ef625a4fe396b (patch) | |
tree | 9d2cb6f947a1bcdfbc66e636ad9b9b36f2c26604 /eval | |
parent | 98c0ed4a58ef51dea75978452cf25e4a400ba594 (diff) | |
parent | 399bc7858573e937ee0a4f5cfd3662bcc93528b7 (diff) |
Merge pull request #17011 from vespa-engine/arnej/constify-find-all
constify find_all()
Diffstat (limited to 'eval')
-rw-r--r-- | eval/src/vespa/eval/eval/test/eval_fixture.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eval/src/vespa/eval/eval/test/eval_fixture.h b/eval/src/vespa/eval/eval/test/eval_fixture.h index 9bd2facb25a..dba26f2b270 100644 --- a/eval/src/vespa/eval/eval/test/eval_fixture.h +++ b/eval/src/vespa/eval/eval/test/eval_fixture.h @@ -78,7 +78,7 @@ private: TensorSpec _result; template <typename T> - void find_all(const TensorFunction &node, std::vector<const T *> &list) { + static void find_all(const TensorFunction &node, std::vector<const T *> &list) { if (auto self = as<T>(node)) { list.push_back(self); } @@ -96,7 +96,7 @@ public: bool optimized = true, bool allow_mutable = false); ~EvalFixture() {} template <typename T> - std::vector<const T *> find_all() { + std::vector<const T *> find_all() const { std::vector<const T *> list; find_all(_tensor_function, list); return list; |