Add new sanity check assertions to UnpackPath

This commit is contained in:
Patrick Niklaus 2016-05-20 22:11:05 +02:00
parent 0bf8bd2230
commit 254ee07942
No known key found for this signature in database
GPG Key ID: E426891B5F978B1B

View File

@ -226,6 +226,11 @@ template <class DataFacadeT, class Derived> class BasicRoutingInterface
recursion_stack.emplace(*std::prev(current), *current);
}
BOOST_ASSERT(*packed_path_begin == phantom_node_pair.source_phantom.forward_segment_id.id ||
*packed_path_begin == phantom_node_pair.source_phantom.reverse_segment_id.id);
BOOST_ASSERT(*std::prev(packed_path_end) == phantom_node_pair.target_phantom.forward_segment_id.id ||
*std::prev(packed_path_end) == phantom_node_pair.target_phantom.reverse_segment_id.id);
std::pair<NodeID, NodeID> edge;
while (!recursion_stack.empty())
{