Using DeallocatingVector class instead of doing vector-swap-tricks

This commit is contained in:
DennisOSRM
2012-08-22 17:36:30 +02:00
parent 818c66e774
commit 417fcde9db
4 changed files with 13 additions and 12 deletions
+2 -1
View File
@@ -40,6 +40,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
#include <boost/foreach.hpp>
#include <boost/unordered_map.hpp>
#include "DeallocatingVector.h"
#include "ExtractorStructs.h"
#include "GridEdge.h"
#include "Percent.h"
@@ -88,7 +89,7 @@ public:
}
template<typename EdgeT>
inline void ConstructGrid(std::vector<EdgeT> & edgeList, char * ramIndexOut, char * fileIndexOut) {
inline void ConstructGrid(DeallocatingVector<EdgeT> & edgeList, char * ramIndexOut, char * fileIndexOut) {
//TODO: Implement this using STXXL-Streams
#ifndef ROUTED
Percent p(edgeList.size());