From 0f459398aed21f4e8fb15e6e4f17412b8140f587 Mon Sep 17 00:00:00 2001 From: StarSkyZheng Date: Mon, 30 Nov 2020 10:31:06 +0800 Subject: [PATCH] Fix boost advance ambiguous error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix: HashSearch.cpp:546:42: error: call of overloaded ‘advance(ITER&, std::__cxx11::basic_string::size_type)’ is ambiguous --- Src/HashSearch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/HashSearch.cpp b/Src/HashSearch.cpp index 09e7384..2dc24db 100644 --- a/Src/HashSearch.cpp +++ b/Src/HashSearch.cpp @@ -258,11 +258,11 @@ int CHashSearch::BuildDHash(const char* szFile, string& sOutFile, int nSplitNum, { // for last block of data, give it a '>' to split the last sequence vPool[unLeft+nRead] = '>'; - advance(itStop, unLeft+nRead+1); + boost::iterators::advance(itStop, unLeft+nRead+1); } else { - advance(itStop, unLeft+nRead); + boost::iterators::advance(itStop, unLeft+nRead); } @@ -543,7 +543,7 @@ int CHashSearch::BuildQHash(istream& input, int nQueryType, map& mT ITER itStop = vPool.begin(); if (m_sLeft.size()+nRead < m_unQSize) { - advance(itStop, m_sLeft.size()+nRead+1); + boost::iterators::advance(itStop, m_sLeft.size()+nRead+1); } else {