Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70642 - trunk/boost/geometry/multi/algorithms
From: barend.gehrels_at_[hidden]
Date: 2011-03-27 14:37:27


Author: barendgehrels
Date: 2011-03-27 14:37:27 EDT (Sun, 27 Mar 2011)
New Revision: 70642
URL: http://svn.boost.org/trac/boost/changeset/70642

Log:
Fixed error for MSVC in some circumstances, "begin" without namespace was a problem
Text files modified:
   trunk/boost/geometry/multi/algorithms/distance.hpp | 12 ++++--------
   1 files changed, 4 insertions(+), 8 deletions(-)

Modified: trunk/boost/geometry/multi/algorithms/distance.hpp
==============================================================================
--- trunk/boost/geometry/multi/algorithms/distance.hpp (original)
+++ trunk/boost/geometry/multi/algorithms/distance.hpp 2011-03-27 14:37:27 EDT (Sun, 27 Mar 2011)
@@ -43,13 +43,11 @@
                 MultiGeometry const& multi,
                 Strategy const& strategy)
     {
- using namespace boost;
-
         bool first = true;
         return_type mindist;
 
- for(typename range_iterator<MultiGeometry const>::type it = begin(multi);
- it != end(multi);
+ for(typename range_iterator<MultiGeometry const>::type it = boost::begin(multi);
+ it != boost::end(multi);
                 ++it)
         {
             return_type dist = geometry::distance(geometry, *it);
@@ -72,13 +70,11 @@
     static inline return_type apply(Multi1 const& multi1,
                 Multi2 const& multi2, Strategy const& strategy)
     {
- using namespace boost;
-
         bool first = true;
         return_type mindist;
 
- for(typename range_iterator<Multi1 const>::type it = begin(multi1);
- it != end(multi1);
+ for(typename range_iterator<Multi1 const>::type it = boost::begin(multi1);
+ it != boost::end(multi1);
                 ++it)
         {
             return_type dist = distance_single_to_multi


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