Boost logo

Boost-Commit :

From: thomas.klimpel_at_[hidden]
Date: 2008-08-10 05:32:14


Author: klimpel
Date: 2008-08-10 05:32:14 EDT (Sun, 10 Aug 2008)
New Revision: 48055
URL: http://svn.boost.org/trac/boost/changeset/48055

Log:
Add missing checks for BOOST_NUMERIC_POOR_MANS_TRAITS in blas1.hpp.

Thanks, Roel. (see http://mathema.tician.de/node/391)

Text files modified:
   sandbox/boost/numeric/bindings/blas/blas1.hpp | 16 ++++++++++++++--
   1 files changed, 14 insertions(+), 2 deletions(-)

Modified: sandbox/boost/numeric/bindings/blas/blas1.hpp
==============================================================================
--- sandbox/boost/numeric/bindings/blas/blas1.hpp (original)
+++ sandbox/boost/numeric/bindings/blas/blas1.hpp 2008-08-10 05:32:14 EDT (Sun, 10 Aug 2008)
@@ -130,7 +130,13 @@
 #endif
     assert( traits::vector_size( x ) == traits::vector_size( y ) ) ;
 
- typedef typename vector_type_x::value_type value_type ;
+ typedef
+#ifndef BOOST_NUMERIC_BINDINGS_POOR_MANS_TRAITS
+ typename traits::vector_traits< vector_type_x >::value_type
+#else
+ typename vector_type_x::value_type
+#endif
+ value_type ;
 
     const int n = traits::vector_size( x ) ;
     const int stride_x = traits::vector_stride( x ) ;
@@ -159,7 +165,13 @@
 #endif
     assert( traits::vector_size( x ) == traits::vector_size( y ) ) ;
 
- typedef typename vector_type_x::value_type value_type ;
+ typedef
+#ifndef BOOST_NUMERIC_BINDINGS_POOR_MANS_TRAITS
+ typename traits::vector_traits< vector_type_x >::value_type
+#else
+ typename vector_type_x::value_type
+#endif
+ value_type ;
 
     const int n = traits::vector_size( x ) ;
     const int stride_x = traits::vector_stride( x ) ;


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