Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85292 - trunk/libs/geometry/example
From: barend.gehrels_at_[hidden]
Date: 2013-08-10 17:44:07


Author: barendgehrels
Date: 2013-08-10 17:44:06 EDT (Sat, 10 Aug 2013)
New Revision: 85292
URL: http://svn.boost.org/trac/boost/changeset/85292

Log:
[geometry] fixed c04_b example to updated dispatch structure of area

Text files modified:
   trunk/libs/geometry/example/c04_b_custom_triangle_example.cpp | 7 ++++---
   1 files changed, 4 insertions(+), 3 deletions(-)

Modified: trunk/libs/geometry/example/c04_b_custom_triangle_example.cpp
==============================================================================
--- trunk/libs/geometry/example/c04_b_custom_triangle_example.cpp Sat Aug 10 17:39:45 2013 (r85291)
+++ trunk/libs/geometry/example/c04_b_custom_triangle_example.cpp 2013-08-10 17:44:06 EDT (Sat, 10 Aug 2013) (r85292)
@@ -38,10 +38,11 @@
 namespace boost { namespace geometry { namespace dispatch {
 
 // Specializations of area dispatch structure, implement algorithm
-template<typename P, typename S>
-struct area<ring_tag, triangle<P>, S>
+template<typename Point>
+struct area<triangle<Point>, ring_tag>
 {
- static inline double apply(triangle<P> const& t, S const&)
+ template <typename Strategy>
+ static inline double apply(triangle<Point> const& t, Strategy const&)
     {
         return 0.5 * ((get<0>(t[1]) - get<0>(t[0])) * (get<1>(t[2]) - get<1>(t[0]))
                      - (get<0>(t[2]) - get<0>(t[0])) * (get<1>(t[1]) - get<1>(t[0])));


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