Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71721 - trunk/boost/geometry/algorithms
From: barend.gehrels_at_[hidden]
Date: 2011-05-04 16:40:35


Author: barendgehrels
Date: 2011-05-04 16:40:34 EDT (Wed, 04 May 2011)
New Revision: 71721
URL: http://svn.boost.org/trac/boost/changeset/71721

Log:
Fixed box-in-box (default_strategy was not defined)
Text files modified:
   trunk/boost/geometry/algorithms/within.hpp | 27 +++++++++++++++++++++++++++
   1 files changed, 27 insertions(+), 0 deletions(-)

Modified: trunk/boost/geometry/algorithms/within.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/within.hpp (original)
+++ trunk/boost/geometry/algorithms/within.hpp 2011-05-04 16:40:34 EDT (Wed, 04 May 2011)
@@ -332,6 +332,33 @@
 #endif // DOXYGEN_NO_DISPATCH
 
 
+#ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
+namespace strategy { namespace within
+{
+
+/// Strategy for box-in-box (not used but has to be present for default strategy)
+struct unused_strategy {};
+
+namespace services
+{
+
+// Specialize for box-in-areal (box-in-box). This is meant to do box-in-box
+// but will be catched by box-in-any-areal, which has to change later
+// (we might introduce another tag which is not "areal", derived by poly/ring/
+// multi_poly, but NOT by box, and use that here. E.g. "polygonal")
+// Using cartesian prevents spherical yet from compiling, which is good.
+template <typename Box1, typename Box2>
+struct default_strategy<box_tag, areal_tag, cartesian_tag, cartesian_tag, Box1, Box2>
+{
+ typedef unused_strategy type;
+};
+
+} // namespace services
+
+}} // namespace strategy::within
+
+#endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
+
 /*!
 \brief \brief_check12{is completely inside}
 \ingroup within


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