$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r68218 - trunk/boost/geometry/core
From: barend.gehrels_at_[hidden]
Date: 2011-01-17 15:54:39
Author: barendgehrels
Date: 2011-01-17 15:54:38 EST (Mon, 17 Jan 2011)
New Revision: 68218
URL: http://svn.boost.org/trac/boost/changeset/68218
Log:
Added MPL assertions
Text files modified: 
   trunk/boost/geometry/core/point_type.hpp |    10 ++++++++--                              
   trunk/boost/geometry/core/tag.hpp        |     6 +++++-                                  
   2 files changed, 13 insertions(+), 3 deletions(-)
Modified: trunk/boost/geometry/core/point_type.hpp
==============================================================================
--- trunk/boost/geometry/core/point_type.hpp	(original)
+++ trunk/boost/geometry/core/point_type.hpp	2011-01-17 15:54:38 EST (Mon, 17 Jan 2011)
@@ -10,6 +10,7 @@
 #define BOOST_GEOMETRY_CORE_POINT_TYPE_HPP
 
 
+#include <boost/mpl/assert.hpp>
 #include <boost/range.hpp>
 #include <boost/type_traits/remove_const.hpp>
 
@@ -32,9 +33,14 @@
         - typedef P type (where P should fulfil the Point concept)
     \tparam G geometry
 */
-template <typename G>
+template <typename Geometry>
 struct point_type
-{};
+{
+    BOOST_MPL_ASSERT_MSG
+        (
+            false, NOT_IMPLEMENTED_FOR_THIS_POINT_TYPE, (types<Geometry>)
+        );
+};
 
 
 } // namespace traits
Modified: trunk/boost/geometry/core/tag.hpp
==============================================================================
--- trunk/boost/geometry/core/tag.hpp	(original)
+++ trunk/boost/geometry/core/tag.hpp	2011-01-17 15:54:38 EST (Mon, 17 Jan 2011)
@@ -9,6 +9,7 @@
 #ifndef BOOST_GEOMETRY_CORE_TAG_HPP
 #define BOOST_GEOMETRY_CORE_TAG_HPP
 
+#include <boost/mpl/assert.hpp>
 #include <boost/type_traits/remove_const.hpp>
 
 #include <boost/geometry/core/tags.hpp>
@@ -34,7 +35,10 @@
 template <typename Geometry>
 struct tag
 {
-    typedef geometry_not_recognized_tag type;
+    BOOST_MPL_ASSERT_MSG
+        (
+            false, NOT_IMPLEMENTED_FOR_THIS_POINT_TYPE, (types<Geometry>)
+        );
 };
 
 } // namespace traits