diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-12-04 12:42:20 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-12-06 16:02:59 +0100 |
commit | 941fc8232160e3f952af96a4e1e056d54807d587 (patch) | |
tree | 3fffcd69b6a8c4a99b6eaa563858eb55ab95fd6e /eval | |
parent | 23f7bf9b66adc6316c9642b8c29c6aeb93e316b9 (diff) |
Some -std=c++20a fixes:
add noexcept
de-inline destructor
avoid comparison warning
(and revert changes already made in another branch)
Diffstat (limited to 'eval')
-rw-r--r-- | eval/src/vespa/eval/eval/tensor_spec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eval/src/vespa/eval/eval/tensor_spec.h b/eval/src/vespa/eval/eval/tensor_spec.h index 4f11491571c..f8a06adf331 100644 --- a/eval/src/vespa/eval/eval/tensor_spec.h +++ b/eval/src/vespa/eval/eval/tensor_spec.h @@ -36,7 +36,7 @@ public: Label(const char *name_in) : index(npos), name(name_in) {} bool is_mapped() const { return (index == npos); } bool is_indexed() const { return (index != npos); } - bool operator==(const Label &rhs) const { + bool operator==(const Label &rhs) const noexcept { return ((index == rhs.index) && (name == rhs.name)); } |