Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80941 - trunk/boost/geometry/algorithms
From: bruno.lalande_at_[hidden]
Date: 2012-10-10 16:18:17


Author: bruno.lalande
Date: 2012-10-10 16:18:17 EDT (Wed, 10 Oct 2012)
New Revision: 80941
URL: http://svn.boost.org/trac/boost/changeset/80941

Log:
Used not_implemented for dispatch::for_each.
Text files modified:
   trunk/boost/geometry/algorithms/for_each.hpp | 7 +++++--
   1 files changed, 5 insertions(+), 2 deletions(-)

Modified: trunk/boost/geometry/algorithms/for_each.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/for_each.hpp (original)
+++ trunk/boost/geometry/algorithms/for_each.hpp 2012-10-10 16:18:17 EDT (Wed, 10 Oct 2012)
@@ -21,6 +21,7 @@
 #include <boost/type_traits/is_const.hpp>
 #include <boost/typeof/typeof.hpp>
 
+#include <boost/geometry/algorithms/not_implemented.hpp>
 #include <boost/geometry/core/exterior_ring.hpp>
 #include <boost/geometry/core/interior_rings.hpp>
 #include <boost/geometry/core/tag_cast.hpp>
@@ -151,7 +152,8 @@
     typename Geometry,
     typename Tag = typename tag_cast<typename tag<Geometry>::type, multi_tag>::type
>
-struct for_each_point {};
+struct for_each_point: not_implemented<Tag>
+{};
 
 
 template <typename Point>
@@ -183,7 +185,8 @@
     typename Geometry,
     typename Tag = typename tag_cast<typename tag<Geometry>::type, multi_tag>::type
>
-struct for_each_segment {};
+struct for_each_segment: not_implemented<Tag>
+{};
 
 template <typename Point>
 struct for_each_segment<Point, point_tag>


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