diff options
author | Tor Egge <Tor.Egge@verizonmedia.com> | 2020-10-16 11:33:35 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@verizonmedia.com> | 2020-10-16 11:34:25 +0200 |
commit | d7f79124f7065c468b396cc992a5fb15456d0876 (patch) | |
tree | b67de8e3fb7d3434211bddb7b7e8743c04a485eb /vespalib | |
parent | a4e825b9d0da0143700b253b47b01fe79c635684 (diff) |
Add noexcept specifier to function that cannot throw.
Diffstat (limited to 'vespalib')
-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") { |