Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72293 - in trunk/boost/geometry/strategies: . spherical
From: barend.gehrels_at_[hidden]
Date: 2011-05-30 16:55:10


Author: barendgehrels
Date: 2011-05-30 16:55:10 EDT (Mon, 30 May 2011)
New Revision: 72293
URL: http://svn.boost.org/trac/boost/changeset/72293

Log:
Small adaptions to side
Text files modified:
   trunk/boost/geometry/strategies/side.hpp | 6 +++++-
   trunk/boost/geometry/strategies/spherical/ssf.hpp | 8 +++++++-
   trunk/boost/geometry/strategies/strategies.hpp | 1 +
   3 files changed, 13 insertions(+), 2 deletions(-)

Modified: trunk/boost/geometry/strategies/side.hpp
==============================================================================
--- trunk/boost/geometry/strategies/side.hpp (original)
+++ trunk/boost/geometry/strategies/side.hpp 2011-05-30 16:55:10 EDT (Mon, 30 May 2011)
@@ -36,7 +36,11 @@
 template <typename Tag, typename CalculationType = void>
 struct default_strategy
 {
- typedef strategy::not_implemented type;
+ BOOST_MPL_ASSERT_MSG
+ (
+ false, NOT_IMPLEMENTED_FOR_THIS_TYPE
+ , (types<Tag>)
+ );
 };
 
 

Modified: trunk/boost/geometry/strategies/spherical/ssf.hpp
==============================================================================
--- trunk/boost/geometry/strategies/spherical/ssf.hpp (original)
+++ trunk/boost/geometry/strategies/spherical/ssf.hpp 2011-05-30 16:55:10 EDT (Mon, 30 May 2011)
@@ -108,10 +108,16 @@
 namespace services
 {
 
-template <typename CalculationType>
+/*template <typename CalculationType>
 struct default_strategy<spherical_polar_tag, CalculationType>
 {
     typedef spherical_side_formula<CalculationType> type;
+};*/
+
+template <typename CalculationType>
+struct default_strategy<spherical_equatorial_tag, CalculationType>
+{
+ typedef spherical_side_formula<CalculationType> type;
 };
 
 template <typename CalculationType>

Modified: trunk/boost/geometry/strategies/strategies.hpp
==============================================================================
--- trunk/boost/geometry/strategies/strategies.hpp (original)
+++ trunk/boost/geometry/strategies/strategies.hpp 2011-05-30 16:55:10 EDT (Mon, 30 May 2011)
@@ -40,6 +40,7 @@
 #include <boost/geometry/strategies/spherical/distance_haversine.hpp>
 #include <boost/geometry/strategies/spherical/distance_cross_track.hpp>
 #include <boost/geometry/strategies/spherical/compare_circular.hpp>
+#include <boost/geometry/strategies/spherical/ssf.hpp>
 
 #include <boost/geometry/strategies/agnostic/hull_graham_andrew.hpp>
 #include <boost/geometry/strategies/agnostic/point_in_poly_winding.hpp>


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