|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52370 - sandbox/numeric_bindings/boost/numeric/bindings/traits
From: rutger_at_[hidden]
Date: 2009-04-13 11:18:27
Author: rutger
Date: 2009-04-13 11:18:26 EDT (Mon, 13 Apr 2009)
New Revision: 52370
URL: http://svn.boost.org/trac/boost/changeset/52370
Log:
Defaulting is_complex to that of Boost.Type_traits
Text files modified:
sandbox/numeric_bindings/boost/numeric/bindings/traits/is_complex.hpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: sandbox/numeric_bindings/boost/numeric/bindings/traits/is_complex.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/traits/is_complex.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/traits/is_complex.hpp 2009-04-13 11:18:26 EDT (Mon, 13 Apr 2009)
@@ -11,6 +11,7 @@
#include <boost/mpl/bool.hpp>
#include <boost/numeric/bindings/traits/type.h>
+#include <boost/type_traits/is_complex.hpp>
namespace boost {
namespace numeric {
@@ -18,7 +19,7 @@
namespace traits {
template< typename T >
-struct is_complex: boost::mpl::bool_<false> {};
+struct is_complex: boost::is_complex<T> {};
template<>
struct is_complex< fcomplex_t >: boost::mpl::bool_<true> {};
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