Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80499 - trunk/boost/geometry/extensions/algorithms/buffer
From: bruno.lalande_at_[hidden]
Date: 2012-09-11 18:39:51


Author: bruno.lalande
Date: 2012-09-11 18:39:51 EDT (Tue, 11 Sep 2012)
New Revision: 80499
URL: http://svn.boost.org/trac/boost/changeset/80499

Log:
Removed use of auto keyword.
Text files modified:
   trunk/boost/geometry/extensions/algorithms/buffer/buffered_piece_collection.hpp | 8 +++++---
   1 files changed, 5 insertions(+), 3 deletions(-)

Modified: trunk/boost/geometry/extensions/algorithms/buffer/buffered_piece_collection.hpp
==============================================================================
--- trunk/boost/geometry/extensions/algorithms/buffer/buffered_piece_collection.hpp (original)
+++ trunk/boost/geometry/extensions/algorithms/buffer/buffered_piece_collection.hpp 2012-09-11 18:39:51 EDT (Tue, 11 Sep 2012)
@@ -744,9 +744,11 @@
 
         inline void debug_segment(segment_identifier id)
         {
- auto const& ring = offsetted_rings[id.multi_index];
- auto it = boost::begin(ring) + id.segment_index;
- auto prev = it++;
+ typedef typename boost::range_iterator<buffered_ring<Ring> const>::type iterator;
+
+ buffered_ring<Ring> const& ring = offsetted_rings[id.multi_index];
+ iterator it = boost::begin(ring) + id.segment_index;
+ iterator prev = it++;
                 geometry::model::referring_segment<point_type const&> segment(*prev, *it);
         //std::cout << geometry::wkt(*prev) << " " << geometry::wkt(*it) << std::endl;
         }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk