summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-11-03 16:24:00 +0100
committerTor Egge <Tor.Egge@online.no>2022-11-03 16:24:00 +0100
commit7df4a2b19858036fc25c4604e0f181e45b2a2fa5 (patch)
tree76beaeb1aa7a10583d51852d0f9a7ad61a24c503 /searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp
parentfadba4cea932585e1c0551de42f1c75d1f517667 (diff)
Avoid ambiguity when calling fill_array member function in attribute builder.
Diffstat (limited to 'searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp')
-rw-r--r--searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp b/searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp
index a8ea34344cc..54db8feee93 100644
--- a/searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp
+++ b/searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp
@@ -1634,8 +1634,9 @@ SearchContextTest::requireThatFlagAttributeIsWorkingWhenNewDocsAreAdded()
cfg.setFastSearch(true);
{
cfg.setGrowStrategy(GrowStrategy::make(1, 0, 1));
+ using IL = AttributeBuilder::IntList;
auto a = AttributeBuilder("flags", cfg).
- fill_array({{10, 24}, {20, 24}, {30, 26}, {40, 24}}).get();
+ fill_array({IL{10, 24}, {20, 24}, {30, 26}, {40, 24}}).get();
{
ResultSetPtr rs = performSearch(*a, "<24");
EXPECT_EQUAL(2u, rs->getNumHits());
@@ -1718,8 +1719,9 @@ SearchContextTest::requireThatFlagAttributeHandlesTheByteRange()
LOG(info, "requireThatFlagAttributeHandlesTheByteRange()");
Config cfg(BasicType::INT8, CollectionType::ARRAY);
cfg.setFastSearch(true);
+ using IL = AttributeBuilder::IntList;
auto a = AttributeBuilder("flags", cfg).
- fill_array({{-128}, {-64, -8}, {0, 8}, {64, 24}, {127}}).get();
+ fill_array({IL{-128}, {-64, -8}, {0, 8}, {64, 24}, {127}}).get();
performSearch(*a, "-128", DocSet({1}), TermType::WORD);
performSearch(*a, "127", DocSet({5}), TermType::WORD);