Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58446 - in sandbox/numeric_bindings/boost/numeric/bindings: . ublas
From: rutger_at_[hidden]
Date: 2009-12-18 02:57:22


Author: rutger
Date: 2009-12-18 02:57:21 EST (Fri, 18 Dec 2009)
New Revision: 58446
URL: http://svn.boost.org/trac/boost/changeset/58446

Log:
Renamed value meta-func to value_type, similar to mpl

Added:
   sandbox/numeric_bindings/boost/numeric/bindings/value_type.hpp
      - copied, changed from r58101, /sandbox/numeric_bindings/boost/numeric/bindings/value.hpp
Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/ublas/symmetric.hpp | 4 ++++
   sandbox/numeric_bindings/boost/numeric/bindings/ublas/triangular.hpp | 4 ++++
   sandbox/numeric_bindings/boost/numeric/bindings/ublas/vector.hpp | 4 ++++
   sandbox/numeric_bindings/boost/numeric/bindings/value_type.hpp | 6 +++---
   4 files changed, 15 insertions(+), 3 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/ublas/symmetric.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/ublas/symmetric.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/ublas/symmetric.hpp 2009-12-18 02:57:21 EST (Fri, 18 Dec 2009)
@@ -45,6 +45,10 @@
         return bindings::begin_value( t.data() );
     }
 
+ static value_type* end_value( Id& t ) {
+ return bindings::end_value( t.data() );
+ }
+
 };
 
 } // namespace detail

Modified: sandbox/numeric_bindings/boost/numeric/bindings/ublas/triangular.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/ublas/triangular.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/ublas/triangular.hpp 2009-12-18 02:57:21 EST (Fri, 18 Dec 2009)
@@ -46,6 +46,10 @@
         return bindings::begin_value( t.data() );
     }
 
+ static value_type* end_value( Id& t ) {
+ return bindings::end_value( t.data() );
+ }
+
 };
 
 } // detail

Modified: sandbox/numeric_bindings/boost/numeric/bindings/ublas/vector.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/ublas/vector.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/ublas/vector.hpp 2009-12-18 02:57:21 EST (Fri, 18 Dec 2009)
@@ -37,6 +37,10 @@
         return bindings::begin_value( t.data() );
     }
 
+ static value_type* end_value( Id& t ) {
+ return bindings::end_value( t.data() );
+ }
+
 };
 
 } // namespace detail

Copied: sandbox/numeric_bindings/boost/numeric/bindings/value_type.hpp (from r58101, /sandbox/numeric_bindings/boost/numeric/bindings/value.hpp)
==============================================================================
--- /sandbox/numeric_bindings/boost/numeric/bindings/value.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/value_type.hpp 2009-12-18 02:57:21 EST (Fri, 18 Dec 2009)
@@ -6,8 +6,8 @@
 // http://www.boost.org/LICENSE_1_0.txt)
 //
 
-#ifndef BOOST_NUMERIC_BINDINGS_VALUE_HPP
-#define BOOST_NUMERIC_BINDINGS_VALUE_HPP
+#ifndef BOOST_NUMERIC_BINDINGS_VALUE_TYPE_HPP
+#define BOOST_NUMERIC_BINDINGS_VALUE_TYPE_HPP
 
 #include <boost/numeric/bindings/detail/adaptor.hpp>
 
@@ -16,7 +16,7 @@
 namespace bindings {
 
 template< typename T >
-struct value {
+struct value_type {
     typedef typename detail::property_at< T, tag::value_type >::type 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