Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80937 - sandbox/numeric_bindings/boost/numeric/bindings
From: rutger_at_[hidden]
Date: 2012-10-10 10:17:08


Author: rutger
Date: 2012-10-10 10:17:07 EDT (Wed, 10 Oct 2012)
New Revision: 80937
URL: http://svn.boost.org/trac/boost/changeset/80937

Log:
moved the addressing_index_major and minor to have a nested type definition, not derived

Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/addressing_index.hpp | 14 ++++++++------
   1 files changed, 8 insertions(+), 6 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/addressing_index.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/addressing_index.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/addressing_index.hpp 2012-10-10 10:17:07 EDT (Wed, 10 Oct 2012)
@@ -19,24 +19,26 @@
 namespace bindings {
 
 template< typename T >
-struct addressing_index_minor:
- mpl::if_<
+struct addressing_index_minor {
+ typedef typename mpl::if_<
         is_column_major< T >,
         tag::addressing_index<1>,
         tag::addressing_index<
             mpl::max< tag::matrix, rank< T > >::type::value
>
- >::type {};
+ >::type type;
+};
 
 template< typename T >
-struct addressing_index_major:
- mpl::if_<
+struct addressing_index_major {
+ typedef typename mpl::if_<
         is_column_major< T >,
         tag::addressing_index<
             mpl::max< tag::matrix, rank< T > >::type::value
>,
         tag::addressing_index<1>
- >::type {};
+ >::type type;
+};
 
 
 template< typename AddressingIndex, typename TransTag >


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