Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58677 - sandbox/numeric_bindings/boost/numeric/bindings
From: rutger_at_[hidden]
Date: 2010-01-04 09:14:48


Author: rutger
Date: 2010-01-04 09:14:48 EST (Mon, 04 Jan 2010)
New Revision: 58677
URL: http://svn.boost.org/trac/boost/changeset/58677

Log:
updated is_row_major meta-func

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

Modified: sandbox/numeric_bindings/boost/numeric/bindings/is_row_major.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/is_row_major.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/is_row_major.hpp 2010-01-04 09:14:48 EST (Mon, 04 Jan 2010)
@@ -9,6 +9,7 @@
 #ifndef BOOST_NUMERIC_BINDINGS_IS_ROW_MAJOR_HPP
 #define BOOST_NUMERIC_BINDINGS_IS_ROW_MAJOR_HPP
 
+#include <boost/mpl/if.hpp>
 #include <boost/numeric/bindings/detail/property_map.hpp>
 #include <boost/numeric/bindings/tag.hpp>
 
@@ -18,7 +19,11 @@
 
 template< typename T >
 struct is_row_major:
- detail::is_same_at< T, tag::data_order, tag::row_major > {};
+ mpl::if_<
+ detail::property_has_key< T, tag::data_order >,
+ detail::is_same_at< T, tag::data_order, tag::row_major >,
+ mpl::false_
+ >::type {};
 
 } // namespace bindings
 } // namespace numeric


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