Skip to content

Commit

Permalink
trying to fix build for older compilers #3
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Mar 15, 2024
1 parent d4833bd commit 315fe30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/microsim/devices/MSDevice_FCDReplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ MSDevice_FCDReplay::FCDHandler::myStartElement(int element, const SUMOSAXAttribu
const double speed = attrs.getOpt<double>(SUMO_ATTR_SPEED, id.c_str(), ok, INVALID_DOUBLE);
const double pos = attrs.getOpt<double>(SUMO_ATTR_POSITION, id.c_str(), ok, INVALID_DOUBLE);
const double angle = attrs.getOpt<double>(SUMO_ATTR_ANGLE, id.c_str(), ok, INVALID_DOUBLE);
myTrajectories[id].push_back({Position(x, y), edgeOrLane, pos, speed, angle});
myTrajectories[id].push_back(std::make_tuple(Position(x, y), edgeOrLane, pos, speed, angle));
const MSEdge* const edge = MSEdge::dictionary(isPerson ? edgeOrLane : SUMOXMLDefinitions::getEdgeIDFromLane(edgeOrLane));
if (myRoutes.count(id) == 0) {
myRoutes[id] = {myTime, type, isPerson, {edge}};
myRoutes[id] = std::make_tuple(myTime, type, isPerson, ConstMSEdgeVector{edge});
} else {
auto& route = std::get<3>(myRoutes[id]);
if (!edge->isInternal() && edge != route.back()) {
Expand Down

0 comments on commit 315fe30

Please sign in to comment.