mirror of
https://github.com/boostorg/type_traits.git
synced 2025-08-02 05:54:31 +02:00
Incrementable and decrementable traits failed to compile with array types: fix that by filtering out arrays early.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user