#ifndef FLOATING_POINT_HPP #define FLOATING_POINT_HPP #include #include #include namespace osrm { template bool epsilon_compare(const FloatT number1, const FloatT number2) { static_assert(std::is_floating_point::value, "type must be floating point"); return (std::abs(number1 - number2) < std::numeric_limits::epsilon()); } } #endif // FLOATING_POINT_HPP