|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80682 - trunk/boost/geometry/algorithms
From: bruno.lalande_at_[hidden]
Date: 2012-09-23 17:34:38
Author: bruno.lalande
Date: 2012-09-23 17:34:38 EDT (Sun, 23 Sep 2012)
New Revision: 80682
URL: http://svn.boost.org/trac/boost/changeset/80682
Log:
Used not_implemented on dispatch::centroid.
Text files modified:
trunk/boost/geometry/algorithms/centroid.hpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/boost/geometry/algorithms/centroid.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/centroid.hpp (original)
+++ trunk/boost/geometry/algorithms/centroid.hpp 2012-09-23 17:34:38 EDT (Sun, 23 Sep 2012)
@@ -30,6 +30,7 @@
#include <boost/geometry/algorithms/convert.hpp>
#include <boost/geometry/algorithms/distance.hpp>
+#include <boost/geometry/algorithms/not_implemented.hpp>
#include <boost/geometry/geometries/concepts/check.hpp>
#include <boost/geometry/strategies/centroid.hpp>
#include <boost/geometry/strategies/concepts/centroid_concept.hpp>
@@ -268,7 +269,8 @@
typename Geometry,
typename Tag = typename tag<Geometry>::type
>
-struct centroid {};
+struct centroid: not_implemented<Tag>
+{};
template <typename Geometry>
struct centroid<Geometry, 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