Changed some assert to OSRM_ASSERT

This commit is contained in:
Michael Krasnyk
2017-05-16 16:32:50 +02:00
committed by Patrick Niklaus
parent 14db5f8d1f
commit e605917083
2 changed files with 6 additions and 3 deletions
@@ -3,6 +3,7 @@
#include "extractor/geojson_debug_policies.hpp"
#include "util/geojson_debug_logger.hpp"
#include "util/assert.hpp"
#include "util/bearing.hpp"
#include "util/coordinate_calculation.hpp"
#include "util/log.hpp"
@@ -369,8 +370,9 @@ IntersectionView IntersectionGenerator::TransformIntersectionShapeIntoView(
std::end(intersection_view),
std::mem_fn(&IntersectionViewData::CompareByAngle));
BOOST_ASSERT(intersection_view[0].angle >= 0. &&
intersection_view[0].angle < std::numeric_limits<double>::epsilon());
OSRM_ASSERT(intersection_view[0].angle >= 0. &&
intersection_view[0].angle < std::numeric_limits<double>::epsilon(),
coordinates[node_at_intersection]);
return intersection_view;
}