Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57745 - sandbox/numeric_bindings/boost/numeric/bindings
From: rutger_at_[hidden]
Date: 2009-11-18 08:22:14


Author: rutger
Date: 2009-11-18 08:22:14 EST (Wed, 18 Nov 2009)
New Revision: 57745
URL: http://svn.boost.org/trac/boost/changeset/57745

Log:
Updated transpose to use dispatched metafunctions only

Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/transpose.hpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/transpose.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/transpose.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/transpose.hpp 2009-11-18 08:22:14 EST (Wed, 18 Nov 2009)
@@ -9,7 +9,8 @@
 #ifndef BOOST_NUMERIC_BINDINGS_TRANSPOSE_HPP
 #define BOOST_NUMERIC_BINDINGS_TRANSPOSE_HPP
 
-#include <boost/numeric/bindings/detail/adaptor.hpp>
+#include <boost/numeric/bindings/value_type.hpp>
+#include <boost/numeric/bindings/tensor_rank.hpp>
 #include <boost/mpl/max.hpp>
 
 namespace boost {
@@ -41,11 +42,10 @@
 template< typename T, typename Id, typename Enable >
 struct adaptor< transpose_wrapper<T>, Id, Enable > {
 
- typedef typename adaptor_access<T>::value_type value_type;
+ typedef typename value_type<T>::type value_type;
     typedef typename boost::mpl::max<
- boost::mpl::int_<2>,
- typename adaptor_access<T>::tensor_rank
- >::type tensor_rank;
+ boost::mpl::int_<2>,
+ typename tensor_rank<T>::type >::type tensor_rank;
 
     static std::ptrdiff_t size1( Id const& t ) {
         return tensor_size2( t.get() );


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