Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58924 - in sandbox/numeric_bindings/boost/numeric/bindings/ublas: . detail
From: rutger_at_[hidden]
Date: 2010-01-12 05:46:11


Author: rutger
Date: 2010-01-12 05:46:10 EST (Tue, 12 Jan 2010)
New Revision: 58924
URL: http://svn.boost.org/trac/boost/changeset/58924

Log:
reverted return type of ublas bindings to std::ptrdiff_t, these functions will only be called in case of a std::ptrdiff_t, in case of statically typed strides, they will never be called

Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/ublas/detail/basic_ublas_adaptor.hpp | 4 ++--
   sandbox/numeric_bindings/boost/numeric/bindings/ublas/matrix_expression.hpp | 4 ++--
   sandbox/numeric_bindings/boost/numeric/bindings/ublas/matrix_proxy.hpp | 4 ++--
   sandbox/numeric_bindings/boost/numeric/bindings/ublas/vector_expression.hpp | 2 +-
   sandbox/numeric_bindings/boost/numeric/bindings/ublas/vector_proxy.hpp | 2 +-
   5 files changed, 8 insertions(+), 8 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/ublas/detail/basic_ublas_adaptor.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/ublas/detail/basic_ublas_adaptor.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/ublas/detail/basic_ublas_adaptor.hpp 2010-01-12 05:46:10 EST (Tue, 12 Jan 2010)
@@ -42,11 +42,11 @@
         return bindings::end_value( id.data() );
     }
 
- static typename result_of::stride1< adapted_type >::type stride1( const Id& id ) {
+ static std::ptrdiff_t stride1( const Id& id ) {
         return bindings::stride1( id.data() );
     }
 
- static typename result_of::stride2< adapted_type >::type stride2( const Id& id ) {
+ static std::ptrdiff_t stride2( const Id& id ) {
         return bindings::stride2( id.data() );
     }
 

Modified: sandbox/numeric_bindings/boost/numeric/bindings/ublas/matrix_expression.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/ublas/matrix_expression.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/ublas/matrix_expression.hpp 2010-01-12 05:46:10 EST (Tue, 12 Jan 2010)
@@ -43,11 +43,11 @@
         return bindings::end_value( id.expression() );
     }
 
- static typename result_of::stride1< adapted_type >::type stride1( const Id& id ) {
+ static std::ptrdiff_t stride1( const Id& id ) {
         return bindings::stride1( id.expression() );
     }
 
- static typename result_of::stride2< adapted_type >::type stride2( const Id& id ) {
+ static std::ptrdiff_t stride2( const Id& id ) {
         return bindings::stride2( id.expression() );
     }
 

Modified: sandbox/numeric_bindings/boost/numeric/bindings/ublas/matrix_proxy.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/ublas/matrix_proxy.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/ublas/matrix_proxy.hpp 2010-01-12 05:46:10 EST (Tue, 12 Jan 2010)
@@ -46,11 +46,11 @@
         return bindings::end_value( id.data() );
     }
 
- static typename result_of::stride1< adapted_type >::type stride1( const Id& id ) {
+ static std::ptrdiff_t stride1( const Id& id ) {
         return bindings::stride1( id.data() );
     }
 
- static typename result_of::stride2< adapted_type >::type stride2( const Id& id ) {
+ static std::ptrdiff_t stride2( const Id& id ) {
         return bindings::stride2( id.data() );
     }
 

Modified: sandbox/numeric_bindings/boost/numeric/bindings/ublas/vector_expression.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/ublas/vector_expression.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/ublas/vector_expression.hpp 2010-01-12 05:46:10 EST (Tue, 12 Jan 2010)
@@ -40,7 +40,7 @@
         return bindings::end_value( id.expression() );
     }
 
- static typename result_of::stride1< adapted_type >::type stride1( const Id& id ) {
+ static std::ptrdiff_t stride1( const Id& id ) {
         return bindings::stride1( id.expression() );
     }
 

Modified: sandbox/numeric_bindings/boost/numeric/bindings/ublas/vector_proxy.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/ublas/vector_proxy.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/ublas/vector_proxy.hpp 2010-01-12 05:46:10 EST (Tue, 12 Jan 2010)
@@ -40,7 +40,7 @@
         return bindings::end_value( id.data() );
     }
 
- static typename result_of::stride1< adapted_type >::type stride1( const Id& id ) {
+ static std::ptrdiff_t stride1( const Id& id ) {
         return bindings::stride1( id.data() );
     }
 


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