moving back to vector

This commit is contained in:
DennisOSRM 2012-04-25 18:32:59 +02:00
parent d8927ec5f8
commit 7fa409a72f

View File

@ -52,7 +52,7 @@ EdgeBasedGraphFactory::EdgeBasedGraphFactory(int nodes, std::vector<NodeBasedEdg
_restrictionBucketVector.at(index).push_back(std::make_pair(restriction.toNode, restriction.flags.isOnly)); _restrictionBucketVector.at(index).push_back(std::make_pair(restriction.toNode, restriction.flags.isOnly));
} }
std::string usedSpeedProfile(speedProfile.get_child("").begin()->first); std::string usedSpeedProfile( speedProfile.get_child("").begin()->first );
BOOST_FOREACH(boost::property_tree::ptree::value_type &v, speedProfile.get_child(usedSpeedProfile)) { BOOST_FOREACH(boost::property_tree::ptree::value_type &v, speedProfile.get_child(usedSpeedProfile)) {
if("trafficSignalPenalty" == v.first) { if("trafficSignalPenalty" == v.first) {
std::string value = v.second.get<std::string>(""); std::string value = v.second.get<std::string>("");