Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76210 - trunk/boost/geometry/algorithms
From: bruno.lalande_at_[hidden]
Date: 2011-12-28 08:29:15


Author: bruno.lalande
Date: 2011-12-28 08:29:15 EST (Wed, 28 Dec 2011)
New Revision: 76210
URL: http://svn.boost.org/trac/boost/changeset/76210

Log:
Made dispatch::area able to retrieve the default strategy by itself.
Text files modified:
   trunk/boost/geometry/algorithms/area.hpp | 12 +++++++++---
   1 files changed, 9 insertions(+), 3 deletions(-)

Modified: trunk/boost/geometry/algorithms/area.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/area.hpp (original)
+++ trunk/boost/geometry/algorithms/area.hpp 2011-12-28 08:29:15 EST (Wed, 28 Dec 2011)
@@ -136,7 +136,14 @@
 template
 <
     typename Geometry,
- typename Strategy,
+ typename Strategy = typename strategy::area::services::default_strategy
+ <
+ typename cs_tag
+ <
+ typename point_type<Geometry>::type
+ >::type,
+ typename point_type<Geometry>::type
+ >::type,
     typename Tag = typename tag<Geometry>::type
>
 struct area
@@ -236,8 +243,7 @@
 
     return dispatch::area
         <
- Geometry,
- strategy_type
+ Geometry
>::apply(geometry, strategy_type());
 }
 


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