diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-04-07 20:55:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-07 20:55:40 +0200 |
commit | 0f8387d7f21d392f9d7ab5ee60b10acce1dff4d8 (patch) | |
tree | 7cbd9a367009d9a8935bda15343df2653cf154a8 | |
parent | 25477d83714ba80753e4e233777c47c896885600 (diff) | |
parent | b3ebc1e59dee7e578d9479cf98e48268f525bd61 (diff) |
Merge pull request #17303 from vespa-engine/toregge/add-noexcept-specifier-to-lambda
Add noexcept specifier to lambda.
-rw-r--r-- | vespalib/src/tests/datastore/sharded_hash_map/sharded_hash_map_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/tests/datastore/sharded_hash_map/sharded_hash_map_test.cpp b/vespalib/src/tests/datastore/sharded_hash_map/sharded_hash_map_test.cpp index 7aef34be55d..da9bc1284fa 100644 --- a/vespalib/src/tests/datastore/sharded_hash_map/sharded_hash_map_test.cpp +++ b/vespalib/src/tests/datastore/sharded_hash_map/sharded_hash_map_test.cpp @@ -266,7 +266,7 @@ TEST_F(DataStoreShardedHashTest, normalize_values_works) EXPECT_EQ(i, _allocator.get_wrapped(result->first.load_relaxed()).value()); result->second.store_relaxed(EntryRef(i + 200)); } - _hash_map.normalize_values([](EntryRef ref) { return EntryRef(ref.ref() + 300); }); + _hash_map.normalize_values([](EntryRef ref) noexcept { return EntryRef(ref.ref() + 300); }); for (uint32_t i = 0; i < 50; ++i) { MyCompare comp(_store, i); auto result = _hash_map.find(comp, EntryRef()); |