Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85656 - trunk/boost/property_map
From: jewillco_at_[hidden]
Date: 2013-09-12 11:17:53


Author: jewillco
Date: 2013-09-12 11:17:53 EDT (Thu, 12 Sep 2013)
New Revision: 85656
URL: http://svn.boost.org/trac/boost/changeset/85656

Log:
Added commented-out assertion failure for pointers as property maps

Text files modified:
   trunk/boost/property_map/property_map.hpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/boost/property_map/property_map.hpp
==============================================================================
--- trunk/boost/property_map/property_map.hpp Thu Sep 12 11:14:36 2013 (r85655)
+++ trunk/boost/property_map/property_map.hpp 2013-09-12 11:17:53 EDT (Thu, 12 Sep 2013) (r85656)
@@ -13,6 +13,7 @@
 
 #include <boost/assert.hpp>
 #include <boost/config.hpp>
+#include <boost/static_assert.hpp>
 #include <boost/pending/cstddef.hpp>
 #include <boost/detail/iterator.hpp>
 #include <boost/concept_check.hpp>
@@ -147,6 +148,7 @@
 #else
   template <class T>
   struct property_traits<T*> {
+ // BOOST_STATIC_ASSERT(boost::is_same<T, T*>::value && !"Using pointers as property maps is deprecated");
     typedef T value_type;
     typedef value_type& reference;
     typedef std::ptrdiff_t key_type;
@@ -154,6 +156,7 @@
   };
   template <class T>
   struct property_traits<const T*> {
+ // BOOST_STATIC_ASSERT(boost::is_same<T, T*>::value && !"Using pointers as property maps is deprecated");
     typedef T value_type;
     typedef const value_type& reference;
     typedef std::ptrdiff_t key_type;


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