|
37 | 37 | #include <boost/geometry/algorithms/detail/assign_indexed_point.hpp> |
38 | 38 | #include <boost/geometry/algorithms/detail/convert_point_to_point.hpp> |
39 | 39 | #include <boost/geometry/algorithms/detail/convert_indexed_to_indexed.hpp> |
40 | | -#include <boost/geometry/algorithms/detail/interior_iterator.hpp> |
41 | 40 | #include <boost/geometry/algorithms/not_implemented.hpp> |
42 | 41 |
|
43 | 42 | #include <boost/geometry/arithmetic/arithmetic.hpp> |
@@ -128,7 +127,7 @@ struct segment_to_range |
128 | 127 | { |
129 | 128 | traits::resize<Range>::apply(range, 2); |
130 | 129 |
|
131 | | - typename boost::range_iterator<Range>::type it = boost::begin(range); |
| 130 | + auto it = boost::begin(range); |
132 | 131 |
|
133 | 132 | assign_point_from_index<0>(segment, *it); |
134 | 133 | ++it; |
@@ -186,8 +185,7 @@ struct range_to_range |
186 | 185 | // but ok, sice below it == end() |
187 | 186 |
|
188 | 187 | size_type i = 0; |
189 | | - for (typename boost::range_iterator<view_type const>::type it |
190 | | - = boost::begin(view); |
| 188 | + for (auto it = boost::begin(view); |
191 | 189 | it != boost::end(view) && i < n; |
192 | 190 | ++it, ++i) |
193 | 191 | { |
@@ -227,15 +225,11 @@ struct polygon_to_polygon |
227 | 225 | >::type |
228 | 226 | >::apply(interior_rings(destination), num_interior_rings(source)); |
229 | 227 |
|
230 | | - typename interior_return_type<Polygon1 const>::type |
231 | | - rings_source = interior_rings(source); |
232 | | - typename interior_return_type<Polygon2>::type |
233 | | - rings_dest = interior_rings(destination); |
| 228 | + auto const& rings_source = interior_rings(source); |
| 229 | + auto&& rings_dest = interior_rings(destination); |
234 | 230 |
|
235 | | - typename detail::interior_iterator<Polygon1 const>::type |
236 | | - it_source = boost::begin(rings_source); |
237 | | - typename detail::interior_iterator<Polygon2>::type |
238 | | - it_dest = boost::begin(rings_dest); |
| 231 | + auto it_source = boost::begin(rings_source); |
| 232 | + auto it_dest = boost::begin(rings_dest); |
239 | 233 |
|
240 | 234 | for ( ; it_source != boost::end(rings_source); ++it_source, ++it_dest) |
241 | 235 | { |
@@ -263,10 +257,8 @@ struct multi_to_multi: private Policy |
263 | 257 | { |
264 | 258 | traits::resize<Multi2>::apply(multi2, boost::size(multi1)); |
265 | 259 |
|
266 | | - typename boost::range_iterator<Multi1 const>::type it1 |
267 | | - = boost::begin(multi1); |
268 | | - typename boost::range_iterator<Multi2>::type it2 |
269 | | - = boost::begin(multi2); |
| 260 | + auto it1 = boost::begin(multi1); |
| 261 | + auto it2 = boost::begin(multi2); |
270 | 262 |
|
271 | 263 | for (; it1 != boost::end(multi1); ++it1, ++it2) |
272 | 264 | { |
|
0 commit comments