diff --git a/Util/GraphLoader.h b/Util/GraphLoader.h index 40bc98a9c..66401548c 100644 --- a/Util/GraphLoader.h +++ b/Util/GraphLoader.h @@ -185,9 +185,9 @@ NodeID readBinaryOSRMGraphFromStream(std::istream &in, std::vector& edgeL } } } - std::vector::iterator newEnd = std::remove_if(edgeList.begin(), edgeList.end(), _ExcessRemover()); + typename std::vector::iterator newEnd = std::remove_if(edgeList.begin(), edgeList.end(), _ExcessRemover()); ext2IntNodeMap.clear(); - std::vector(edgeList.begin(), newEnd).swap(edgeList); //remove excess candidates. + std::vector(edgeList.begin(), newEnd).swap(edgeList); //remove excess candidates. INFO("Graph loaded ok and has " << edgeList.size() << " edges"); return n; } @@ -299,7 +299,7 @@ NodeID readDTMPGraphFromStream(std::istream &in, std::vector& edgeList, s edgeList.push_back(inputEdge); } ext2IntNodeMap.clear(); - std::vector(edgeList.begin(), edgeList.end()).swap(edgeList); //remove excess candidates. + std::vector(edgeList.begin(), edgeList.end()).swap(edgeList); //remove excess candidates. std::cout << "ok" << std::endl; return n; }