From 497b877d15434894ad35b6451064c7bbfc807dba Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sat, 30 Aug 2014 09:19:06 +0100 Subject: [PATCH] Incrementable and decrementable traits failed to compile with array types: fix that by filtering out arrays early. --- include/boost/type_traits/has_post_decrement.hpp | 6 +++++- include/boost/type_traits/has_post_increment.hpp | 6 +++++- include/boost/type_traits/has_pre_decrement.hpp | 6 +++++- include/boost/type_traits/has_pre_increment.hpp | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/include/boost/type_traits/has_post_decrement.hpp b/include/boost/type_traits/has_post_decrement.hpp index e277eaf..024acb0 100644 --- a/include/boost/type_traits/has_post_decrement.hpp +++ b/include/boost/type_traits/has_post_decrement.hpp @@ -9,6 +9,8 @@ #ifndef BOOST_TT_HAS_POST_DECREMENT_HPP_INCLUDED #define BOOST_TT_HAS_POST_DECREMENT_HPP_INCLUDED +#include + #define BOOST_TT_TRAIT_NAME has_post_decrement #define BOOST_TT_TRAIT_OP -- #define BOOST_TT_FORBIDDEN_IF\ @@ -27,7 +29,9 @@ ::boost::is_pointer< Lhs_noref >::value\ >::value,\ ::boost::is_const< Lhs_noref >::value\ - >::value\ + >::value,\ + /* Arrays */ \ + ::boost::is_array::value\ >::value diff --git a/include/boost/type_traits/has_post_increment.hpp b/include/boost/type_traits/has_post_increment.hpp index 085b2d5..b055607 100644 --- a/include/boost/type_traits/has_post_increment.hpp +++ b/include/boost/type_traits/has_post_increment.hpp @@ -9,6 +9,8 @@ #ifndef BOOST_TT_HAS_POST_INCREMENT_HPP_INCLUDED #define BOOST_TT_HAS_POST_INCREMENT_HPP_INCLUDED +#include + #define BOOST_TT_TRAIT_NAME has_post_increment #define BOOST_TT_TRAIT_OP ++ #define BOOST_TT_FORBIDDEN_IF\ @@ -27,7 +29,9 @@ ::boost::is_pointer< Lhs_noref >::value\ >::value,\ ::boost::is_const< Lhs_noref >::value\ - >::value\ + >::value,\ + /* Arrays */ \ + ::boost::is_array::value\ >::value diff --git a/include/boost/type_traits/has_pre_decrement.hpp b/include/boost/type_traits/has_pre_decrement.hpp index 8f08291..feb3d9d 100644 --- a/include/boost/type_traits/has_pre_decrement.hpp +++ b/include/boost/type_traits/has_pre_decrement.hpp @@ -9,6 +9,8 @@ #ifndef BOOST_TT_HAS_PRE_DECREMENT_HPP_INCLUDED #define BOOST_TT_HAS_PRE_DECREMENT_HPP_INCLUDED +#include + #define BOOST_TT_TRAIT_NAME has_pre_decrement #define BOOST_TT_TRAIT_OP -- #define BOOST_TT_FORBIDDEN_IF\ @@ -27,7 +29,9 @@ ::boost::is_pointer< Rhs_noref >::value\ >::value,\ ::boost::is_const< Rhs_noref >::value\ - >::value\ + >::value,\ + /* Arrays */ \ + ::boost::is_array::value\ >::value diff --git a/include/boost/type_traits/has_pre_increment.hpp b/include/boost/type_traits/has_pre_increment.hpp index fcb946d..6a2411d 100644 --- a/include/boost/type_traits/has_pre_increment.hpp +++ b/include/boost/type_traits/has_pre_increment.hpp @@ -9,6 +9,8 @@ #ifndef BOOST_TT_HAS_PRE_INCREMENT_HPP_INCLUDED #define BOOST_TT_HAS_PRE_INCREMENT_HPP_INCLUDED +#include + #define BOOST_TT_TRAIT_NAME has_pre_increment #define BOOST_TT_TRAIT_OP ++ #define BOOST_TT_FORBIDDEN_IF\ @@ -27,7 +29,9 @@ ::boost::is_pointer< Rhs_noref >::value\ >::value,\ ::boost::is_const< Rhs_noref >::value\ - >::value\ + >::value,\ + /* Arrays */ \ + ::boost::is_array::value\ >::value