Incrementable and decrementable traits failed to compile with array types: fix that by filtering out arrays early.

This commit is contained in:
jzmaddock
2014-08-30 09:19:06 +01:00
parent c0a2a3c012
commit 497b877d15
4 changed files with 20 additions and 4 deletions

View File

@@ -9,6 +9,8 @@
#ifndef BOOST_TT_HAS_POST_DECREMENT_HPP_INCLUDED
#define BOOST_TT_HAS_POST_DECREMENT_HPP_INCLUDED
#include <boost/type_traits/is_array.hpp>
#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<Lhs_noref>::value\
>::value

View File

@@ -9,6 +9,8 @@
#ifndef BOOST_TT_HAS_POST_INCREMENT_HPP_INCLUDED
#define BOOST_TT_HAS_POST_INCREMENT_HPP_INCLUDED
#include <boost/type_traits/is_array.hpp>
#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<Lhs_noref>::value\
>::value

View File

@@ -9,6 +9,8 @@
#ifndef BOOST_TT_HAS_PRE_DECREMENT_HPP_INCLUDED
#define BOOST_TT_HAS_PRE_DECREMENT_HPP_INCLUDED
#include <boost/type_traits/is_array.hpp>
#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<Rhs_noref>::value\
>::value

View File

@@ -9,6 +9,8 @@
#ifndef BOOST_TT_HAS_PRE_INCREMENT_HPP_INCLUDED
#define BOOST_TT_HAS_PRE_INCREMENT_HPP_INCLUDED
#include <boost/type_traits/is_array.hpp>
#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<Rhs_noref>::value\
>::value