|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59111 - sandbox/numeric_bindings/boost/numeric/bindings
From: rutger_at_[hidden]
Date: 2010-01-18 02:59:46
Author: rutger
Date: 2010-01-18 02:59:45 EST (Mon, 18 Jan 2010)
New Revision: 59111
URL: http://svn.boost.org/trac/boost/changeset/59111
Log:
make has_linear_array work for all types
Text files modified:
sandbox/numeric_bindings/boost/numeric/bindings/has_linear_array.hpp | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
Modified: sandbox/numeric_bindings/boost/numeric/bindings/has_linear_array.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/has_linear_array.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/has_linear_array.hpp 2010-01-18 02:59:45 EST (Mon, 18 Jan 2010)
@@ -16,10 +16,14 @@
namespace numeric {
namespace bindings {
-template< typename T >
-struct has_linear_array:
- detail::is_same_at< T, tag::data_structure, tag::linear_array > {};
+template< typename T, typename Enable = void >
+struct has_linear_array: mpl::false_ {};
+template< typename T >
+struct has_linear_array<
+ T,
+ typename boost::enable_if< detail::is_adaptable<T> >::type >:
+ detail::is_same_at< T, tag::data_structure, tag::linear_array > {};
} // 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