|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82390 - trunk/boost/geometry/algorithms
From: bruno.lalande_at_[hidden]
Date: 2013-01-07 17:39:18
Author: bruno.lalande
Date: 2013-01-07 17:39:17 EST (Mon, 07 Jan 2013)
New Revision: 82390
URL: http://svn.boost.org/trac/boost/changeset/82390
Log:
Integrated not_implemented into clear.
Text files modified:
trunk/boost/geometry/algorithms/clear.hpp | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
Modified: trunk/boost/geometry/algorithms/clear.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/clear.hpp (original)
+++ trunk/boost/geometry/algorithms/clear.hpp 2013-01-07 17:39:17 EST (Mon, 07 Jan 2013)
@@ -14,9 +14,9 @@
#ifndef BOOST_GEOMETRY_ALGORITHMS_CLEAR_HPP
#define BOOST_GEOMETRY_ALGORITHMS_CLEAR_HPP
-#include <boost/mpl/assert.hpp>
#include <boost/type_traits/remove_const.hpp>
+#include <boost/geometry/algorithms/not_implemented.hpp>
#include <boost/geometry/core/access.hpp>
#include <boost/geometry/core/exterior_ring.hpp>
#include <boost/geometry/core/interior_rings.hpp>
@@ -84,14 +84,8 @@
typename Geometry,
typename Tag = typename tag_cast<typename tag<Geometry>::type, multi_tag>::type
>
-struct clear
-{
- BOOST_MPL_ASSERT_MSG
- (
- false, NOT_OR_NOT_YET_IMPLEMENTED_FOR_THIS_GEOMETRY_TYPE
- , (types<Geometry>)
- );
-};
+struct clear: not_implemented<Tag>
+{};
// Point/box/segment do not have clear. So specialize to do nothing.
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