From 7df4a2b19858036fc25c4604e0f181e45b2a2fa5 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Thu, 3 Nov 2022 16:24:00 +0100 Subject: Avoid ambiguity when calling fill_array member function in attribute builder. --- searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'searchlib/src/tests/attribute/searchcontext/searchcontext_test.cpp') 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); -- cgit v1.2.3