summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2021-03-29 17:37:15 +0200
committerTor Egge <Tor.Egge@broadpark.no>2021-03-29 17:37:15 +0200
commitc1e6fe7dcf3aa449287542feef64b59c1d380918 (patch)
tree18035f18277b104c6c6fb3ff6c551698fd8df99e
parentfef814ec263ce1ceca0416251b3204f43ee3ed30 (diff)
Add noexcept specifier to lambda.
-rw-r--r--searchlib/src/tests/attribute/enumstore/enumstore_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/tests/attribute/enumstore/enumstore_test.cpp b/searchlib/src/tests/attribute/enumstore/enumstore_test.cpp
index ca5e6e8a721..e3dce6d8b09 100644
--- a/searchlib/src/tests/attribute/enumstore/enumstore_test.cpp
+++ b/searchlib/src/tests/attribute/enumstore/enumstore_test.cpp
@@ -664,7 +664,7 @@ TYPED_TEST(EnumStoreDictionaryTest, normalize_posting_lists_works)
auto find_result = dict.find_posting_list(this->make_bound_comparator(0), root);
EXPECT_EQ(value_0_idx, find_result.first);
EXPECT_EQ(this->fake_pidx(), find_result.second);
- auto dummy = [](EntryRef posting_idx) { return posting_idx; };
+ auto dummy = [](EntryRef posting_idx) noexcept { return posting_idx; };
std::vector<EntryRef> saved_refs;
auto save_refs_and_clear = [&saved_refs](EntryRef posting_idx) { saved_refs.push_back(posting_idx); return EntryRef(); };
EXPECT_FALSE(dict.normalize_posting_lists(dummy));