|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r58725 - sandbox/numeric_bindings/boost/numeric/bindings
From: rutger_at_[hidden]
Date: 2010-01-05 15:01:28
Author: rutger
Date: 2010-01-05 15:01:27 EST (Tue, 05 Jan 2010)
New Revision: 58725
URL: http://svn.boost.org/trac/boost/changeset/58725
Log:
Meta-function is_mutable should work for any storage type
Text files modified:
sandbox/numeric_bindings/boost/numeric/bindings/is_mutable.hpp | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
Modified: sandbox/numeric_bindings/boost/numeric/bindings/is_mutable.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/is_mutable.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/is_mutable.hpp 2010-01-05 15:01:27 EST (Tue, 05 Jan 2010)
@@ -10,21 +10,17 @@
#define BOOST_NUMERIC_BINDINGS_IS_MUTABLE_HPP
#include <boost/type_traits/is_same.hpp>
-#include <boost/utility/enable_if.hpp>
#include <boost/numeric/bindings/value.hpp>
-#include <boost/numeric/bindings/has_linear_array.hpp>
namespace boost {
namespace numeric {
namespace bindings {
-template< typename T, typename Enable = void >
-struct is_mutable {};
-
template< typename T >
-struct is_mutable< T, typename enable_if< has_linear_array<T> >::type >:
- is_same< typename value<T>::type,
- typename remove_const< typename value<T>::type >::type
+struct is_mutable:
+ is_same<
+ typename value<T>::type,
+ typename remove_const< typename value<T>::type >::type
> {};
} // namespace bindings
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