diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-10-07 19:06:11 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-10-07 19:06:11 +0200 |
commit | 6e43370139dc4085c772bf238ce6a64febc3c5c1 (patch) | |
tree | ec6fa72104fd8a17ca2680a3946501518b6891e0 /searchlib | |
parent | d8365f1cde0c00a5a671f87c0baad461beff28c2 (diff) |
Range iterators over std::vector<bool> and storage::JudyMultiMap do not
return references.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/tests/expression/attributenode/attribute_node_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/tests/expression/attributenode/attribute_node_test.cpp b/searchlib/src/tests/expression/attributenode/attribute_node_test.cpp index 5592edcc514..ab45ca0bdbe 100644 --- a/searchlib/src/tests/expression/attributenode/attribute_node_test.cpp +++ b/searchlib/src/tests/expression/attributenode/attribute_node_test.cpp @@ -114,7 +114,7 @@ AttributeManagerFixture::buildAttribute(const vespalib::string &name, BasicType auto attr = std::dynamic_pointer_cast<AttributeType>(attrBase); EXPECT_TRUE(attr); attr->addReservedDoc(); - for (const auto &value : values) { + for (const std::conditional_t<std::is_same_v<bool, ValueType>, bool, ValueType&> value : values) { uint32_t docId = 0; EXPECT_TRUE(attr->addDoc(docId)); EXPECT_NOT_EQUAL(0u, docId); |