Changed BOOST_AUTO to BOOST_AUTO_TPL for pgi 11.2

[SVN r70060]
This commit is contained in:
Barend Gehrels
2011-03-17 14:02:01 +00:00
parent 2b03e95bc1
commit 05186e267d
26 changed files with 49 additions and 49 deletions

View File

@@ -281,7 +281,7 @@ struct centroid_polygon_state
typename interior_return_type<Polygon const>::type rings
= interior_rings(poly);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
per_ring::apply(*it, strategy, state);
}

View File

@@ -167,7 +167,7 @@ struct correct_polygon
typename interior_return_type<Polygon>::type rings
= interior_rings(poly);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
correct_ring
<
@@ -221,8 +221,8 @@ template <typename Ring>
struct correct<ring_tag, Ring>
: detail::correct::correct_ring
<
Ring,
std::less<typename coordinate_type<Ring>::type>
Ring,
std::less<typename coordinate_type<Ring>::type>
>
{};

View File

@@ -33,7 +33,7 @@ class calculate_polygon_sum
static inline ReturnType sum_interior_rings(Rings const& rings, Strategy const& strategy)
{
ReturnType sum = ReturnType();
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
sum += Policy::apply(*it, strategy);
}

View File

@@ -183,7 +183,7 @@ struct polygon_collect_vectors
typename interior_return_type<Polygon const>::type rings
= interior_rings(polygon);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
per_range::apply(collection, *it);
}

View File

@@ -355,8 +355,8 @@ struct section_visitor
Turns& m_turns;
InterruptPolicy& m_interrupt_policy;
section_visitor(int id1, Geometry1 const& g1,
int id2, Geometry2 const& g2,
section_visitor(int id1, Geometry1 const& g1,
int id2, Geometry2 const& g2,
Turns& turns, InterruptPolicy& ip)
: m_source_id1(id1), m_geometry1(g1)
, m_source_id2(id2), m_geometry2(g2)
@@ -637,7 +637,7 @@ struct get_turns_polygon_cs
typename interior_return_type<Polygon const>::type rings
= interior_rings(polygon);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings);
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings);
++it, ++i)
{
intersector_type::apply(

View File

@@ -87,7 +87,7 @@ namespace dispatch
typename interior_return_type<Polygon const>::type rings
= interior_rings(polygon);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
id.ring_index++;
per_ring::apply(*it, geometry, id, map);
@@ -104,7 +104,7 @@ namespace dispatch
typename interior_return_type<Polygon const>::type rings
= interior_rings(polygon);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
id.ring_index++;
per_ring::apply(*it, id, map);
@@ -173,13 +173,13 @@ template
overlay_type OverlayType,
typename IntersectionMap, typename SelectionMap
>
inline void update_selection_map(IntersectionMap const& intersection_map,
inline void update_selection_map(IntersectionMap const& intersection_map,
SelectionMap const& map_with_all, SelectionMap& selection_map)
{
selection_map.clear();
for (typename SelectionMap::const_iterator it = boost::begin(map_with_all);
it != boost::end(map_with_all);
for (typename SelectionMap::const_iterator it = boost::begin(map_with_all);
it != boost::end(map_with_all);
++it)
{
/*
@@ -234,7 +234,7 @@ inline void select_rings(Geometry1 const& geometry1, Geometry2 const& geometry2,
template
<
overlay_type OverlayType,
typename Geometry,
typename Geometry,
typename IntersectionMap, typename SelectionMap
>
inline void select_rings(Geometry const& geometry,

View File

@@ -359,7 +359,7 @@ struct sectionalize_range
Reverse ? iterate_reverse : iterate_forward
>::type view_type;
static inline void apply(Range const& range, Sections& sections,
static inline void apply(Range const& range, Sections& sections,
ring_identifier ring_id)
{
typedef model::referring_segment<Point const> segment_type;
@@ -428,7 +428,7 @@ struct sectionalize_polygon
ring_id.ring_index++;
typename interior_return_type<Polygon const>::type rings
= interior_rings(poly);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings);
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings);
++it, ++ring_id.ring_index)
{
sectionalizer_type::apply(*it, sections, ring_id);

View File

@@ -211,7 +211,7 @@ struct point_to_polygon
typename interior_return_type<Polygon const>::type rings
= interior_rings(polygon);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
distance_containment dcr = per_ring::apply(point,
*it, pp_strategy, ps_strategy);

View File

@@ -82,8 +82,8 @@ struct fe_range_per_segment
typename point_type<Range>::type
>::type point_type;
BOOST_AUTO(it, boost::begin(range));
BOOST_AUTO(previous, it++);
BOOST_AUTO_TPL(it, boost::begin(range));
BOOST_AUTO_TPL(previous, it++);
while(it != boost::end(range))
{
model::referring_segment<point_type> s(*previous, *it);
@@ -114,7 +114,7 @@ struct fe_polygon_per_point
typename interior_return_type<poly_type>::type rings
= interior_rings(poly);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
f = per_ring::apply(*it, f);
}
@@ -143,7 +143,7 @@ struct fe_polygon_per_segment
typename interior_return_type<poly_type>::type rings
= interior_rings(poly);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
f = per_ring::apply(*it, f);
}

View File

@@ -77,7 +77,7 @@ struct polygon_count
typename interior_return_type<Polygon const>::type rings
= interior_rings(poly);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
n += range_count<ring_type>::apply(*it, add_for_open);
}

View File

@@ -48,7 +48,7 @@ struct polygon_reverse
typename interior_return_type<Polygon>::type rings
= interior_rings(polygon);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
per_range::apply(*it);
}

View File

@@ -144,8 +144,8 @@ struct simplify_polygon
= interior_rings(poly_in);
typename interior_return_type<Polygon>::type rings_out
= interior_rings(poly_out);
BOOST_AUTO(it_out, boost::begin(rings_out));
for (BOOST_AUTO(it_in, boost::begin(rings_in));
BOOST_AUTO_TPL(it_out, boost::begin(rings_out));
for (BOOST_AUTO_TPL(it_in, boost::begin(rings_in));
it_in != boost::end(rings_in);
++it_in, ++it_out)
{

View File

@@ -100,7 +100,7 @@ struct transform_box_or_segment
assign_point_from_index<1>(source, source_point[1]);
point_type2 target_point[2];
if (strategy.apply(source_point[0], target_point[0])
if (strategy.apply(source_point[0], target_point[0])
&& strategy.apply(source_point[1], target_point[1]))
{
assign_point_to_index<0>(target_point[0], target);
@@ -174,8 +174,8 @@ struct transform_polygon
= interior_rings(poly1);
typename interior_return_type<Polygon2>::type rings2
= interior_rings(poly2);
BOOST_AUTO(it1, boost::begin(rings1));
BOOST_AUTO(it2, boost::begin(rings2));
BOOST_AUTO_TPL(it1, boost::begin(rings1));
BOOST_AUTO_TPL(it2, boost::begin(rings2));
for ( ; it1 != boost::end(interior_rings(poly1)); ++it1, ++it2)
{
if (!transform_range_out<point2_type>(*it1,

View File

@@ -58,7 +58,7 @@ struct polygon_unique
typename interior_return_type<Polygon>::type rings
= interior_rings(polygon);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
per_range::apply(*it, policy);
}

View File

@@ -219,7 +219,7 @@ struct point_in_polygon
{
typename interior_return_type<Polygon const>::type rings
= interior_rings(poly);
for (BOOST_AUTO(it, boost::begin(rings));
for (BOOST_AUTO_TPL(it, boost::begin(rings));
it != boost::end(rings);
++it)
{

View File

@@ -171,7 +171,7 @@ struct wkt_poly
typename interior_return_type<Polygon const>::type rings
= interior_rings(poly);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
os << ",";
wkt_sequence<ring>::apply(os, *it);

View File

@@ -206,7 +206,7 @@ struct polygon_buffer
typename interior_return_type<Polygon const>::type rings
= interior_rings(polygon);
for (BOOST_AUTO(it, boost::begin(rings); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings); it != boost::end(rings); ++it)
{
output_ring_type ring;
policy::apply(*it, ring, distance, join_strategy

View File

@@ -186,7 +186,7 @@ struct insert_rings<polygon_tag, RingCollection, Polygon>
typename interior_return_type<Polygon const>::type rings
= interior_rings(polygon);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
#ifdef BOOST_GEOMETRY_DEBUG_SPLIT_RINGS
std::cout << geometry::wkt(*it)
@@ -494,7 +494,7 @@ struct polygon_split_rings
static inline void apply(Polygon const& polygon, RingCollection& ring_collection)
{
per_ring::apply(exterior_ring(polygon), ring_collection);
for (BOOST_AUTO(it, boost::begin(interior_rings(polygon)));
for (BOOST_AUTO_TPL(it, boost::begin(interior_rings(polygon)));
it != boost::end(interior_rings(polygon));
++it)
{

View File

@@ -363,7 +363,7 @@ struct polygon_mark_spikes
typename interior_return_type<Polygon const>::type rings
= interior_rings(polygon);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
// Interior ring (zero based)
id.ring_index++;

View File

@@ -46,7 +46,7 @@ struct range_remove_marked
typedef typename coordinate_type<Range>::type coordinate_type;
static inline void apply(Range const& range_in, ring_identifier id,
static inline void apply(Range const& range_in, ring_identifier id,
Range& range_out, MarkMap const& mark_map)
{
typename MarkMap::const_iterator mit = mark_map.find(id);
@@ -82,7 +82,7 @@ struct range_remove_marked
template <typename Polygon, typename MarkMap>
struct polygon_remove_marked
{
static inline void apply(Polygon const& polygon_in, ring_identifier id,
static inline void apply(Polygon const& polygon_in, ring_identifier id,
Polygon& polygon_out, MarkMap const& mark_map)
{
typedef typename geometry::ring_type<Polygon>::type ring_type;
@@ -98,10 +98,10 @@ struct polygon_remove_marked
= interior_rings(polygon_out);
rings_out.resize(boost::size(interior_rings(polygon_in)));
BOOST_AUTO(out, boost::begin(rings_out));
BOOST_AUTO_TPL(out, boost::begin(rings_out));
for (BOOST_AUTO(it, boost::begin(rings_in));
it != boost::end(rings_in);
for (BOOST_AUTO_TPL(it, boost::begin(rings_in));
it != boost::end(rings_in);
++it, ++out)
{
id.ring_index++;
@@ -114,7 +114,7 @@ struct polygon_remove_marked
template <typename MultiGeometry, typename MarkMap, typename SinglePolicy>
struct multi_remove_marked
{
static inline void apply(MultiGeometry const& multi_in, ring_identifier id,
static inline void apply(MultiGeometry const& multi_in, ring_identifier id,
MultiGeometry& multi_out, MarkMap const& mark_map)
{
id.multi_index = 0;

View File

@@ -132,7 +132,7 @@ struct polygon_remove_spikes
typename interior_return_type<Polygon>::type rings
= interior_rings(polygon);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
per_range::apply(*it, policy);
}

View File

@@ -103,7 +103,7 @@ struct shape_create_polygon
typename interior_return_type<Polygon const>::type rings
= interior_rings(polygon);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
parts[ring++] = offset;
offset = range_to_part(*it, xp, yp, offset);

View File

@@ -134,11 +134,11 @@ struct svg_poly
{
typename interior_return_type<Polygon const>::type rings
= interior_rings(polygon);
for (BOOST_AUTO(rit, boost::begin(rings));
for (BOOST_AUTO_TPL(rit, boost::begin(rings));
rit != boost::end(rings); ++rit)
{
first = true;
for (BOOST_AUTO(it, boost::begin(*rit)); it != boost::end(*rit);
for (BOOST_AUTO_TPL(it, boost::begin(*rit)); it != boost::end(*rit);
++it, first = false)
{
os << (first ? "M" : " L") << " "

View File

@@ -34,7 +34,7 @@ struct fe_range_multi
typename add_const_if_c<IsConst, Multi>::type& multi,
Actor& actor)
{
for(BOOST_AUTO(it, boost::begin(multi)); it != boost::end(multi); ++it)
for(BOOST_AUTO_TPL(it, boost::begin(multi)); it != boost::end(multi); ++it)
{
geometry::detail::for_each_range(*it, actor);
}

View File

@@ -43,7 +43,7 @@ struct for_each_multi
typename add_const_if_c<IsConst, MultiGeometry>::type& multi,
Functor f)
{
for(BOOST_AUTO(it, boost::begin(multi)); it != boost::end(multi); ++it)
for(BOOST_AUTO_TPL(it, boost::begin(multi)); it != boost::end(multi); ++it)
{
f = Policy::apply(*it, f);
}

View File

@@ -214,7 +214,7 @@ struct dsv_poly
typename interior_return_type<Polygon const>::type rings
= interior_rings(poly);
for (BOOST_AUTO(it, boost::begin(rings)); it != boost::end(rings); ++it)
for (BOOST_AUTO_TPL(it, boost::begin(rings)); it != boost::end(rings); ++it)
{
os << settings.list_separator;
dsv_range<ring>::apply(os, *it, settings);