aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-04-07 20:55:40 +0200
committerGitHub <noreply@github.com>2021-04-07 20:55:40 +0200
commit0f8387d7f21d392f9d7ab5ee60b10acce1dff4d8 (patch)
tree7cbd9a367009d9a8935bda15343df2653cf154a8
parent25477d83714ba80753e4e233777c47c896885600 (diff)
parentb3ebc1e59dee7e578d9479cf98e48268f525bd61 (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.cpp2
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());