Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64738 - sandbox/geometry/boost/geometry/algorithms
From: barend.gehrels_at_[hidden]
Date: 2010-08-11 09:02:45


Author: barendgehrels
Date: 2010-08-11 09:02:41 EDT (Wed, 11 Aug 2010)
New Revision: 64738
URL: http://svn.boost.org/trac/boost/changeset/64738

Log:
Correct now works for any geometry
Text files modified:
   sandbox/geometry/boost/geometry/algorithms/correct.hpp | 8 +++++++-
   1 files changed, 7 insertions(+), 1 deletions(-)

Modified: sandbox/geometry/boost/geometry/algorithms/correct.hpp
==============================================================================
--- sandbox/geometry/boost/geometry/algorithms/correct.hpp (original)
+++ sandbox/geometry/boost/geometry/algorithms/correct.hpp 2010-08-11 09:02:41 EDT (Wed, 11 Aug 2010)
@@ -170,7 +170,13 @@
 {
 
 template <typename Tag, typename Geometry>
-struct correct {};
+struct correct
+{
+ static inline void apply(Geometry& geometry)
+ {
+ // Default: no action necessary
+ }
+};
 
 template <typename Box>
 struct correct<box_tag, Box>


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