diff options
author | Maxim Pimenov <m@maps.me> | 2015-10-21 14:45:17 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:02:27 +0300 |
commit | 7e2abfba0bffbc3e96314f6c1dabe5e27f9782e8 (patch) | |
tree | 38b4a3b4c8d7cf3696ba045ff529004e8ce65dc6 /search/retrieval.cpp | |
parent | 469e0b9b0c4eaee75fdee4ec4556f94a27f4e7d6 (diff) |
[search] A refactoring of ValueList.
Diffstat (limited to 'search/retrieval.cpp')
-rw-r--r-- | search/retrieval.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/search/retrieval.cpp b/search/retrieval.cpp index 48c0582536..c715469060 100644 --- a/search/retrieval.cpp +++ b/search/retrieval.cpp @@ -67,8 +67,9 @@ unique_ptr<coding::CompressedBitVector> RetrieveAddressFeatures(MwmSet::MwmHandl ASSERT(value, ()); serial::CodingParams codingParams(trie::GetCodingParams(value->GetHeader().GetDefCodingParams())); ModelReaderPtr searchReader = value->m_cont.GetReader(SEARCH_INDEX_FILE_TAG); - auto const trieRoot = trie::ReadTrie(SubReaderWrapper<Reader>(searchReader.GetPtr()), - trie::ValueReader(codingParams)); + auto const trieRoot = + trie::ReadTrie<SubReaderWrapper<Reader>, ValueList<FeatureWithRankAndCenter>>( + SubReaderWrapper<Reader>(searchReader.GetPtr()), codingParams); auto emptyFilter = [](uint32_t /* featureId */) { |