Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66600 - sandbox/SOC/2010/sweepline/boost/sweepline/detail
From: sydorchuk.andriy_at_[hidden]
Date: 2010-11-15 16:46:25


Author: asydorchuk
Date: 2010-11-15 16:46:23 EST (Mon, 15 Nov 2010)
New Revision: 66600
URL: http://svn.boost.org/trac/boost/changeset/66600

Log:
Const references changes to compile under gcc-4.

Text files modified:
   sandbox/SOC/2010/sweepline/boost/sweepline/detail/voronoi_formation.hpp | 16 ++++++++--------
   1 files changed, 8 insertions(+), 8 deletions(-)

Modified: sandbox/SOC/2010/sweepline/boost/sweepline/detail/voronoi_formation.hpp
==============================================================================
--- sandbox/SOC/2010/sweepline/boost/sweepline/detail/voronoi_formation.hpp (original)
+++ sandbox/SOC/2010/sweepline/boost/sweepline/detail/voronoi_formation.hpp 2010-11-15 16:46:23 EST (Mon, 15 Nov 2010)
@@ -292,10 +292,10 @@
             }
 
         bool operator==(const circle_event &c_event) const {
- epsilon_robust_comparator<T> &lhs1 = center_y_ * c_event.denom_;
- epsilon_robust_comparator<T> &rhs1 = denom_ * c_event.center_y_;
- epsilon_robust_comparator<T> &lhs2 = lower_x_ * c_event.denom_;
- epsilon_robust_comparator<T> &rhs2 = denom_ * c_event.lower_x_;
+ const epsilon_robust_comparator<T> &lhs1 = center_y_ * c_event.denom_;
+ const epsilon_robust_comparator<T> &rhs1 = denom_ * c_event.center_y_;
+ const epsilon_robust_comparator<T> &lhs2 = lower_x_ * c_event.denom_;
+ const epsilon_robust_comparator<T> &rhs2 = denom_ * c_event.lower_x_;
             return (lhs1.compare(rhs1) == UNDEFINED && lhs2.compare(rhs2) == UNDEFINED);
         }
 
@@ -304,13 +304,13 @@
         }
 
         bool operator<(const circle_event &c_event) const {
- epsilon_robust_comparator<T> &lhs1 = lower_x_ * c_event.denom_;
- epsilon_robust_comparator<T> &rhs1 = denom_ * c_event.lower_x_;
+ const epsilon_robust_comparator<T> &lhs1 = lower_x_ * c_event.denom_;
+ const epsilon_robust_comparator<T> &rhs1 = denom_ * c_event.lower_x_;
             kPredicateResult pres = lhs1.compare(rhs1, 64);
             if (pres != UNDEFINED)
                 return (pres == LESS);
- epsilon_robust_comparator<T> &lhs2 = center_y_ * c_event.denom_;
- epsilon_robust_comparator<T> &rhs2 = denom_ * c_event.center_y_;
+ const epsilon_robust_comparator<T> &lhs2 = center_y_ * c_event.denom_;
+ const epsilon_robust_comparator<T> &rhs2 = denom_ * c_event.center_y_;
             return (lhs2.compare(rhs2, 64) == LESS);
         }
 


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