Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63586 - sandbox/geometry/boost/geometry/strategies/spherical
From: barend.gehrels_at_[hidden]
Date: 2010-07-04 07:36:39


Author: barendgehrels
Date: 2010-07-04 07:36:38 EDT (Sun, 04 Jul 2010)
New Revision: 63586
URL: http://svn.boost.org/trac/boost/changeset/63586

Log:
Fixed for gcc
Text files modified:
   sandbox/geometry/boost/geometry/strategies/spherical/distance_cross_track.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: sandbox/geometry/boost/geometry/strategies/spherical/distance_cross_track.hpp
==============================================================================
--- sandbox/geometry/boost/geometry/strategies/spherical/distance_cross_track.hpp (original)
+++ sandbox/geometry/boost/geometry/strategies/spherical/distance_cross_track.hpp 2010-07-04 07:36:38 EDT (Sun, 04 Jul 2010)
@@ -38,8 +38,8 @@
     \ingroup distance
     \details Class which calculates the distance of a point to a segment, using latlong points
     \see http://williams.best.vwh.net/avform.htm
- \tparam P point type
- \tparam S segment type
+ \tparam Point point type
+ \tparam PointOfSegment type of point-of-segment
 */
 template
 <
@@ -87,6 +87,8 @@
     inline return_type apply(Point const& p,
                 PointOfSegment const& sp1, PointOfSegment const& sp2) const
     {
+ using std::abs; // to support ADL, and forces std::abs
+
         // http://williams.best.vwh.net/avform.htm#XTE
         return_type d1 = m_strategy.apply(sp1, p);
 


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