summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2021-03-18 21:28:09 +0100
committerTor Egge <Tor.Egge@broadpark.no>2021-03-18 21:28:09 +0100
commita02d67befcce2b0052697b9e225ae3ecc4474871 (patch)
tree5be328fe55c36f6f18175afa800303e4b35cb34e /searchlib
parente2666dfbe5a56dbdb1c8b2ce3bf0ef40e8bc29ac (diff)
Add noexcept specifier to lambdas.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/enum_store_dictionary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/enum_store_dictionary.cpp b/searchlib/src/vespa/searchlib/attribute/enum_store_dictionary.cpp
index 18e34c89ad0..6605c7ad704 100644
--- a/searchlib/src/vespa/searchlib/attribute/enum_store_dictionary.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/enum_store_dictionary.cpp
@@ -228,7 +228,7 @@ EnumStoreDictionary<DictionaryT, UnorderedDictionaryT>::sync_unordered_after_loa
if constexpr (has_unordered_dictionary) {
for (auto itr = this->_dict.begin(); itr.valid(); ++itr) {
EntryRef ref(itr.getKey());
- std::function<EntryRef(void)> insert_unordered_entry([ref]() -> EntryRef { return ref; });
+ std::function<EntryRef(void)> insert_unordered_entry([ref]() noexcept -> EntryRef { return ref; });
auto& add_result = this->_unordered_dict.add(this->_unordered_dict.get_default_comparator(), ref, insert_unordered_entry);
assert(add_result.first.load_relaxed() == ref);
add_result.second.store_relaxed(EntryRef(itr.getData()));