Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77183 - trunk/boost/geometry/extensions/gis/projections/impl
From: barend.gehrels_at_[hidden]
Date: 2012-03-03 14:42:36


Author: barendgehrels
Date: 2012-03-03 14:42:35 EST (Sat, 03 Mar 2012)
New Revision: 77183
URL: http://svn.boost.org/trac/boost/changeset/77183

Log:
Boost.Geometry Projection: applied patch (submitted by Krzysztof Czainski) to avoid static const constants
Text files modified:
   trunk/boost/geometry/extensions/gis/projections/impl/adjlon.hpp | 6 +++---
   trunk/boost/geometry/extensions/gis/projections/impl/pj_init.hpp | 2 +-
   2 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/geometry/extensions/gis/projections/impl/adjlon.hpp
==============================================================================
--- trunk/boost/geometry/extensions/gis/projections/impl/adjlon.hpp (original)
+++ trunk/boost/geometry/extensions/gis/projections/impl/adjlon.hpp 2012-03-03 14:42:35 EST (Sat, 03 Mar 2012)
@@ -51,9 +51,9 @@
 /* reduce argument to range +/- PI */
 inline double adjlon (double lon)
 {
- static const double SPI = 3.14159265359;
- static const double TWOPI = 6.2831853071795864769;
- static const double ONEPI = 3.14159265358979323846;
+ const double SPI = 3.14159265359;
+ const double TWOPI = 6.2831853071795864769;
+ const double ONEPI = 3.14159265358979323846;
 
     if (geometry::math::abs(lon) <= SPI)
     {

Modified: trunk/boost/geometry/extensions/gis/projections/impl/pj_init.hpp
==============================================================================
--- trunk/boost/geometry/extensions/gis/projections/impl/pj_init.hpp (original)
+++ trunk/boost/geometry/extensions/gis/projections/impl/pj_init.hpp 2012-03-03 14:42:35 EST (Sat, 03 Mar 2012)
@@ -257,7 +257,7 @@
 
 inline parameters pj_init_plus(std::string const& definition, bool use_defaults = true)
 {
- static const char* sep = " +";
+ const char* sep = " +";
 
     /* split into arguments based on '+' and trim white space */
 


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