Removing explicit namespace usage
This commit is contained in:
parent
2b5e110719
commit
fd79e81fe5
@ -49,8 +49,6 @@ extern "C" {
|
|||||||
#include "Util/LuaUtil.h"
|
#include "Util/LuaUtil.h"
|
||||||
#include "Util/StringUtil.h"
|
#include "Util/StringUtil.h"
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
typedef QueryEdge::EdgeData EdgeData;
|
typedef QueryEdge::EdgeData EdgeData;
|
||||||
typedef DynamicGraph<EdgeData>::InputEdge InputEdge;
|
typedef DynamicGraph<EdgeData>::InputEdge InputEdge;
|
||||||
typedef StaticGraph<EdgeData>::InputEdge StaticEdge;
|
typedef StaticGraph<EdgeData>::InputEdge StaticEdge;
|
||||||
@ -77,7 +75,7 @@ int main (int argc, char *argv[]) {
|
|||||||
omp_set_num_threads(numberOfThreads);
|
omp_set_num_threads(numberOfThreads);
|
||||||
|
|
||||||
INFO("Using restrictions from file: " << argv[2]);
|
INFO("Using restrictions from file: " << argv[2]);
|
||||||
std::ifstream restrictionsInstream(argv[2], ios::binary);
|
std::ifstream restrictionsInstream(argv[2], std::ios::binary);
|
||||||
if(!restrictionsInstream.good()) {
|
if(!restrictionsInstream.good()) {
|
||||||
ERR("Could not access <osrm-restrictions> files");
|
ERR("Could not access <osrm-restrictions> files");
|
||||||
}
|
}
|
||||||
@ -214,11 +212,11 @@ int main (int argc, char *argv[]) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
INFO("Building Node Array");
|
INFO("Building Node Array");
|
||||||
sort(contractedEdgeList.begin(), contractedEdgeList.end());
|
std::sort(contractedEdgeList.begin(), contractedEdgeList.end());
|
||||||
unsigned numberOfNodes = 0;
|
unsigned numberOfNodes = 0;
|
||||||
unsigned numberOfEdges = contractedEdgeList.size();
|
unsigned numberOfEdges = contractedEdgeList.size();
|
||||||
INFO("Serializing compacted graph");
|
INFO("Serializing compacted graph");
|
||||||
ofstream edgeOutFile(graphOut, ios::binary);
|
std::ofstream edgeOutFile(graphOut, std::ios::binary);
|
||||||
|
|
||||||
BOOST_FOREACH(QueryEdge & edge, contractedEdgeList) {
|
BOOST_FOREACH(QueryEdge & edge, contractedEdgeList) {
|
||||||
if(edge.source > numberOfNodes) {
|
if(edge.source > numberOfNodes) {
|
||||||
|
Loading…
Reference in New Issue
Block a user