diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-10-16 12:14:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-16 12:14:03 +0200 |
commit | d4e4510797b88696cdd54b1d97cbfd3148cd551a (patch) | |
tree | 6eeefa81245f1de7065465a077e9abe1dfd3f90a | |
parent | 7be391ce964ed8ecf1891879a95c44db4e1afc2e (diff) | |
parent | d7f79124f7065c468b396cc992a5fb15456d0876 (diff) |
Merge pull request #14915 from vespa-engine/toregge/eliminate-noexcept-warning
Add noexcept specifier to function that cannot throw.
-rw-r--r-- | vespalib/src/tests/stllike/hash_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/tests/stllike/hash_test.cpp b/vespalib/src/tests/stllike/hash_test.cpp index 2b190b6b2dc..8c017ef69b4 100644 --- a/vespalib/src/tests/stllike/hash_test.cpp +++ b/vespalib/src/tests/stllike/hash_test.cpp @@ -346,7 +346,7 @@ struct myhash { }; bool operator == (uint32_t a, const S & b) { return a == b.a(); } -bool operator == (const S & a, uint32_t b) { return a.a() == b; } +bool operator == (const S & a, uint32_t b) noexcept { return a.a() == b; } TEST("test hash set find") { |