Skip to content
Snippets Groups Projects
Commit 243f1ab9 authored by Riccardo Maria Bianchi's avatar Riccardo Maria Bianchi :sunny:
Browse files

Fix GCC error about vector iterator (not seen with Clang). Should fixes the CI

parent f74ac835
No related branches found
No related tags found
No related merge requests found
Pipeline #1670024 failed
......@@ -543,10 +543,11 @@ void ReadGeoModel::loopOverAllChildrenInBunches()
const unsigned int stop = start + len;
std::vector<std::vector<std::string>>::const_iterator first = m_allchildren.begin() + start;
std::vector<std::vector<std::string>>::const_iterator last = m_allchildren.begin() + stop;
std::vector<std::vector<std::string>>::const_iterator end = m_allchildren.end();
if ( bb == (nThreads - 1) ) { // last bunch
bunch = std::vector<std::vector<std::string>>(first, m_allchildren.end());
// bunch = bunchIn;
} else { // all bunches but last one
bunch = std::vector<std::vector<std::string>>(first, end);
}
else { // all bunches but last one
bunch = std::vector<std::vector<std::string>>(first, last);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment