Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80970 - trunk/boost/geometry/algorithms
From: bruno.lalande_at_[hidden]
Date: 2012-10-12 17:38:41


Author: bruno.lalande
Date: 2012-10-12 17:38:41 EDT (Fri, 12 Oct 2012)
New Revision: 80970
URL: http://svn.boost.org/trac/boost/changeset/80970

Log:
Used not_implemented in dispatch::num_geometries.
Text files modified:
   trunk/boost/geometry/algorithms/num_geometries.hpp | 12 +++---------
   1 files changed, 3 insertions(+), 9 deletions(-)

Modified: trunk/boost/geometry/algorithms/num_geometries.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/num_geometries.hpp (original)
+++ trunk/boost/geometry/algorithms/num_geometries.hpp 2012-10-12 17:38:41 EDT (Fri, 12 Oct 2012)
@@ -17,7 +17,7 @@
 
 #include <cstddef>
 
-#include <boost/mpl/assert.hpp>
+#include <boost/geometry/algorithms/not_implemented.hpp>
 
 #include <boost/geometry/core/tag.hpp>
 #include <boost/geometry/core/tags.hpp>
@@ -45,14 +45,8 @@
                                 multi_tag
>::type
>
-struct num_geometries
-{
- BOOST_MPL_ASSERT_MSG
- (
- false, NOT_OR_NOT_YET_IMPLEMENTED_FOR_THIS_GEOMETRY_TYPE
- , (types<Geometry>)
- );
-};
+struct num_geometries: not_implemented<Tag>
+{};
 
 
 template <typename Geometry>


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