Remove boost::irange
This commit is contained in:
parent
7416653874
commit
dbd4ecf89b
@ -2,10 +2,10 @@
|
||||
|
||||
#include "engine/hint.hpp"
|
||||
#include "engine/polyline_compressor.hpp"
|
||||
#include "util/integer_range.hpp"
|
||||
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <boost/range/irange.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
@ -206,7 +206,7 @@ util::json::Array makeRouteLegs(std::vector<guidance::RouteLeg> legs,
|
||||
{
|
||||
util::json::Array json_legs;
|
||||
auto step_geometry_iter = step_geometries.begin();
|
||||
for (const auto idx : boost::irange(0UL, legs.size()))
|
||||
for (const auto idx : util::irange<std::size_t>(0UL, legs.size()))
|
||||
{
|
||||
auto leg = std::move(legs[idx]);
|
||||
util::json::Array json_steps;
|
||||
|
@ -1,10 +1,10 @@
|
||||
#include "engine/douglas_peucker.hpp"
|
||||
#include "util/coordinate_calculation.hpp"
|
||||
#include "util/web_mercator.hpp"
|
||||
#include "util/coordinate.hpp"
|
||||
#include "util/coordinate_calculation.hpp"
|
||||
#include "util/integer_range.hpp"
|
||||
#include "util/web_mercator.hpp"
|
||||
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/range/irange.hpp>
|
||||
|
||||
#include <cmath>
|
||||
#include <algorithm>
|
||||
@ -115,7 +115,7 @@ std::vector<util::Coordinate> douglasPeucker(std::vector<util::Coordinate>::cons
|
||||
auto simplified_size = std::count(is_necessary.begin(), is_necessary.end(), true);
|
||||
std::vector<util::Coordinate> simplified_geometry;
|
||||
simplified_geometry.reserve(simplified_size);
|
||||
for (auto idx : boost::irange<std::size_t>(0UL, size))
|
||||
for (auto idx : util::irange<std::size_t>(0UL, size))
|
||||
{
|
||||
if (is_necessary[idx])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user