unordered_multimap compilation fixes

This commit is contained in:
Michael Krasnyk 2017-09-28 15:49:44 +02:00
parent b3f59ab92c
commit 790b574114

View File

@ -494,28 +494,32 @@ std::vector<EdgeDuration> oneToManySearch(SearchEngineData<Algorithm> &engine_wo
if (DIRECTION == FORWARD_DIRECTION)
{
if (phantom_node.IsValidForwardTarget())
target_nodes_index.insert({phantom_node.forward_segment_id.id,
{index,
target_nodes_index.insert(
{phantom_node.forward_segment_id.id,
std::make_tuple(index,
phantom_node.GetForwardWeightPlusOffset(),
phantom_node.GetForwardDuration()}});
phantom_node.GetForwardDuration())});
if (phantom_node.IsValidReverseTarget())
target_nodes_index.insert({phantom_node.reverse_segment_id.id,
{index,
target_nodes_index.insert(
{phantom_node.reverse_segment_id.id,
std::make_tuple(index,
phantom_node.GetReverseWeightPlusOffset(),
phantom_node.GetReverseDuration()}});
phantom_node.GetReverseDuration())});
}
else if (DIRECTION == REVERSE_DIRECTION)
{
if (phantom_node.IsValidForwardSource())
target_nodes_index.insert({phantom_node.forward_segment_id.id,
{index,
target_nodes_index.insert(
{phantom_node.forward_segment_id.id,
std::make_tuple(index,
-phantom_node.GetForwardWeightPlusOffset(),
-phantom_node.GetForwardDuration()}});
-phantom_node.GetForwardDuration())});
if (phantom_node.IsValidReverseSource())
target_nodes_index.insert({phantom_node.reverse_segment_id.id,
{index,
target_nodes_index.insert(
{phantom_node.reverse_segment_id.id,
std::make_tuple(index,
-phantom_node.GetReverseWeightPlusOffset(),
-phantom_node.GetReverseDuration()}});
-phantom_node.GetReverseDuration())});
}
}