|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68632 - in sandbox/type_traits/boost/type_traits: . detail
From: frederic.bron_at_[hidden]
Date: 2011-02-03 16:49:06
Author: bronf
Date: 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
New Revision: 68632
URL: http://svn.boost.org/trac/boost/changeset/68632
Log:
operator traits: replaced std::numeric_limits<T>::is_integer by boost::is_integral<T>
Text files modified:
sandbox/type_traits/boost/type_traits/detail/has_binary_operator.hpp | 3 ++-
sandbox/type_traits/boost/type_traits/detail/has_postfix_operator.hpp | 5 +----
sandbox/type_traits/boost/type_traits/detail/has_prefix_operator.hpp | 5 ++---
sandbox/type_traits/boost/type_traits/has_operator_bit_and.hpp | 4 ++--
sandbox/type_traits/boost/type_traits/has_operator_bit_and_equal.hpp | 4 ++--
sandbox/type_traits/boost/type_traits/has_operator_bit_or.hpp | 4 ++--
sandbox/type_traits/boost/type_traits/has_operator_bit_or_equal.hpp | 4 ++--
sandbox/type_traits/boost/type_traits/has_operator_bit_xor.hpp | 4 ++--
sandbox/type_traits/boost/type_traits/has_operator_bit_xor_equal.hpp | 4 ++--
sandbox/type_traits/boost/type_traits/has_operator_complement.hpp | 2 +-
sandbox/type_traits/boost/type_traits/has_operator_left_shift.hpp | 4 ++--
sandbox/type_traits/boost/type_traits/has_operator_left_shift_equal.hpp | 4 ++--
sandbox/type_traits/boost/type_traits/has_operator_minus.hpp | 2 +-
sandbox/type_traits/boost/type_traits/has_operator_minus_equal.hpp | 2 +-
sandbox/type_traits/boost/type_traits/has_operator_modulus.hpp | 4 ++--
sandbox/type_traits/boost/type_traits/has_operator_modulus_equal.hpp | 4 ++--
sandbox/type_traits/boost/type_traits/has_operator_plus.hpp | 4 ++--
sandbox/type_traits/boost/type_traits/has_operator_plus_equal.hpp | 2 +-
sandbox/type_traits/boost/type_traits/has_operator_right_shift.hpp | 4 ++--
sandbox/type_traits/boost/type_traits/has_operator_right_shift_equal.hpp | 4 ++--
20 files changed, 35 insertions(+), 38 deletions(-)
Modified: sandbox/type_traits/boost/type_traits/detail/has_binary_operator.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/detail/has_binary_operator.hpp (original)
+++ sandbox/type_traits/boost/type_traits/detail/has_binary_operator.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -6,14 +6,15 @@
//
// See http://www.boost.org/libs/type_traits for most recent version including documentation.
-#include <limits>
#include <boost/config.hpp>
#include <boost/type_traits/ice.hpp>
#include <boost/type_traits/integral_constant.hpp>
#include <boost/type_traits/is_base_of.hpp>
#include <boost/type_traits/is_class.hpp>
#include <boost/type_traits/is_convertible.hpp>
+#include <boost/type_traits/is_integral.hpp>
#include <boost/type_traits/is_pointer.hpp>
+#include <boost/type_traits/is_same.hpp>
#include <boost/type_traits/is_union.hpp>
#include <boost/type_traits/is_void.hpp>
#include <boost/type_traits/remove_cv.hpp>
Modified: sandbox/type_traits/boost/type_traits/detail/has_postfix_operator.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/detail/has_postfix_operator.hpp (original)
+++ sandbox/type_traits/boost/type_traits/detail/has_postfix_operator.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -9,11 +9,8 @@
#include <boost/config.hpp>
#include <boost/type_traits/ice.hpp>
#include <boost/type_traits/integral_constant.hpp>
-#include <boost/type_traits/is_base_of.hpp>
-#include <boost/type_traits/is_class.hpp>
-#include <boost/type_traits/is_convertible.hpp>
#include <boost/type_traits/is_pointer.hpp>
-#include <boost/type_traits/is_union.hpp>
+#include <boost/type_traits/is_same.hpp>
#include <boost/type_traits/is_void.hpp>
#include <boost/type_traits/remove_cv.hpp>
#include <boost/type_traits/remove_pointer.hpp>
Modified: sandbox/type_traits/boost/type_traits/detail/has_prefix_operator.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/detail/has_prefix_operator.hpp (original)
+++ sandbox/type_traits/boost/type_traits/detail/has_prefix_operator.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -6,14 +6,13 @@
//
// See http://www.boost.org/libs/type_traits for most recent version including documentation.
-#include <limits>
#include <boost/config.hpp>
#include <boost/type_traits/ice.hpp>
#include <boost/type_traits/integral_constant.hpp>
-#include <boost/type_traits/is_base_of.hpp>
#include <boost/type_traits/is_class.hpp>
-#include <boost/type_traits/is_convertible.hpp>
+#include <boost/type_traits/is_integral.hpp>
#include <boost/type_traits/is_pointer.hpp>
+#include <boost/type_traits/is_same.hpp>
#include <boost/type_traits/is_union.hpp>
#include <boost/type_traits/is_void.hpp>
#include <boost/type_traits/remove_cv.hpp>
Modified: sandbox/type_traits/boost/type_traits/has_operator_bit_and.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_bit_and.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_bit_and.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -29,8 +29,8 @@
>::value,\
/* one non integer */\
::boost::type_traits::ice_or<\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<LHS>::type >::is_integer >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<LHS>::type >::value >::value,\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value,\
/* one pointer */\
Modified: sandbox/type_traits/boost/type_traits/has_operator_bit_and_equal.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_bit_and_equal.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_bit_and_equal.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -29,8 +29,8 @@
>::value,\
/* one non integer */\
::boost::type_traits::ice_or<\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<LHS>::type >::is_integer >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<LHS>::type >::value >::value,\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value,\
/* one pointer */\
Modified: sandbox/type_traits/boost/type_traits/has_operator_bit_or.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_bit_or.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_bit_or.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -29,8 +29,8 @@
>::value,\
/* one non integer */\
::boost::type_traits::ice_or<\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<LHS>::type >::is_integer >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<LHS>::type >::value >::value,\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value,\
/* one pointer */\
Modified: sandbox/type_traits/boost/type_traits/has_operator_bit_or_equal.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_bit_or_equal.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_bit_or_equal.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -29,8 +29,8 @@
>::value,\
/* one non integer */\
::boost::type_traits::ice_or<\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<LHS>::type >::is_integer >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<LHS>::type >::value >::value,\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value,\
/* one pointer */\
Modified: sandbox/type_traits/boost/type_traits/has_operator_bit_xor.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_bit_xor.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_bit_xor.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -29,8 +29,8 @@
>::value,\
/* one non integer */\
::boost::type_traits::ice_or<\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<LHS>::type >::is_integer >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<LHS>::type >::value >::value,\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value,\
/* one pointer */\
Modified: sandbox/type_traits/boost/type_traits/has_operator_bit_xor_equal.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_bit_xor_equal.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_bit_xor_equal.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -29,8 +29,8 @@
>::value,\
/* one non integer */\
::boost::type_traits::ice_or<\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<LHS>::type >::is_integer >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<LHS>::type >::value >::value,\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value,\
/* one pointer */\
Modified: sandbox/type_traits/boost/type_traits/has_operator_complement.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_complement.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_complement.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -24,7 +24,7 @@
::boost::is_union < typename ::boost::remove_reference<RHS>::type >::value\
>::value\
>::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value
Modified: sandbox/type_traits/boost/type_traits/has_operator_left_shift.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_left_shift.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_left_shift.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -29,8 +29,8 @@
>::value,\
/* one non integer */\
::boost::type_traits::ice_or<\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<LHS>::type >::is_integer >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<LHS>::type >::value >::value,\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value,\
/* one pointer */\
Modified: sandbox/type_traits/boost/type_traits/has_operator_left_shift_equal.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_left_shift_equal.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_left_shift_equal.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -29,8 +29,8 @@
>::value,\
/* one non integer */\
::boost::type_traits::ice_or<\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<LHS>::type >::is_integer >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<LHS>::type >::value >::value,\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value,\
/* one pointer */\
Modified: sandbox/type_traits/boost/type_traits/has_operator_minus.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_minus.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_minus.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -30,7 +30,7 @@
::boost::type_traits::ice_not< ::boost::is_class < typename ::boost::remove_reference<RHS>::type >::value >::value,\
::boost::type_traits::ice_not< ::boost::is_union < typename ::boost::remove_reference<RHS>::type >::value >::value,\
::boost::type_traits::ice_not< ::boost::is_pointer< typename ::boost::remove_reference<RHS>::type >::value >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value,\
/* LHS=non pointer and RHS=pointer */\
::boost::type_traits::ice_and<\
Modified: sandbox/type_traits/boost/type_traits/has_operator_minus_equal.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_minus_equal.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_minus_equal.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -24,7 +24,7 @@
::boost::type_traits::ice_and<\
::boost::type_traits::ice_not< ::boost::is_class < typename ::boost::remove_reference<RHS>::type >::value >::value,\
::boost::type_traits::ice_not< ::boost::is_union < typename ::boost::remove_reference<RHS>::type >::value >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value\
>::value\
Modified: sandbox/type_traits/boost/type_traits/has_operator_modulus.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_modulus.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_modulus.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -29,8 +29,8 @@
>::value,\
/* one non integer */\
::boost::type_traits::ice_or<\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<LHS>::type >::is_integer >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<LHS>::type >::value >::value,\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value,\
/* one pointer */\
Modified: sandbox/type_traits/boost/type_traits/has_operator_modulus_equal.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_modulus_equal.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_modulus_equal.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -29,8 +29,8 @@
>::value,\
/* one non integer */\
::boost::type_traits::ice_or<\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<LHS>::type >::is_integer >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<LHS>::type >::value >::value,\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value,\
/* one pointer */\
Modified: sandbox/type_traits/boost/type_traits/has_operator_plus.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_plus.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_plus.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -27,7 +27,7 @@
::boost::is_class < typename ::boost::remove_reference<RHS>::type >::value,\
::boost::is_union < typename ::boost::remove_reference<RHS>::type >::value,\
::boost::is_pointer< typename ::boost::remove_reference<RHS>::type >::value,\
- std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer\
+ ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value\
>::value\
>::value\
>::value,\
@@ -38,7 +38,7 @@
::boost::is_class < typename ::boost::remove_reference<LHS>::type >::value,\
::boost::is_union < typename ::boost::remove_reference<LHS>::type >::value,\
::boost::is_pointer< typename ::boost::remove_reference<LHS>::type >::value,\
- std::numeric_limits< typename ::boost::remove_reference<LHS>::type >::is_integer\
+ ::boost::is_integral< typename ::boost::remove_reference<LHS>::type >::value\
>::value\
>::value\
>::value,\
Modified: sandbox/type_traits/boost/type_traits/has_operator_plus_equal.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_plus_equal.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_plus_equal.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -34,7 +34,7 @@
::boost::is_pointer< typename ::boost::remove_reference<LHS>::type >::value,\
::boost::type_traits::ice_not< ::boost::is_void< typename ::boost::remove_pointer<LHS>::type >::value >::value\
>::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value,\
/* LHS==non bool and RHS==pointer */\
::boost::type_traits::ice_and<\
Modified: sandbox/type_traits/boost/type_traits/has_operator_right_shift.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_right_shift.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_right_shift.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -29,8 +29,8 @@
>::value,\
/* one non integer */\
::boost::type_traits::ice_or<\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<LHS>::type >::is_integer >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<LHS>::type >::value >::value,\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value,\
/* one pointer */\
Modified: sandbox/type_traits/boost/type_traits/has_operator_right_shift_equal.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/has_operator_right_shift_equal.hpp (original)
+++ sandbox/type_traits/boost/type_traits/has_operator_right_shift_equal.hpp 2011-02-03 16:48:54 EST (Thu, 03 Feb 2011)
@@ -29,8 +29,8 @@
>::value,\
/* one non integer */\
::boost::type_traits::ice_or<\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<LHS>::type >::is_integer >::value,\
- ::boost::type_traits::ice_not< std::numeric_limits< typename ::boost::remove_reference<RHS>::type >::is_integer >::value\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<LHS>::type >::value >::value,\
+ ::boost::type_traits::ice_not< ::boost::is_integral< typename ::boost::remove_reference<RHS>::type >::value >::value\
>::value\
>::value,\
/* one pointer */\
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