mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-03 06:44:37 +02:00
Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers. (#48)
Co-authored-by: Edward Diener <eldlistmailingz@tropicsoft.com>
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
#include <boost/mpl/if.hpp>
|
#include <boost/mpl/if.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) \
|
#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610)) \
|
||||||
|| (BOOST_MPL_CFG_GCC != 0) \
|
|| (BOOST_MPL_CFG_GCC != 0) \
|
||||||
|| BOOST_WORKAROUND(__IBMCPP__, <= 600)
|
|| BOOST_WORKAROUND(__IBMCPP__, <= 600)
|
||||||
# define BOOST_MPL_CFG_ASSERT_USE_RELATION_NAMES
|
# define BOOST_MPL_CFG_ASSERT_USE_RELATION_NAMES
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
#if BOOST_WORKAROUND(__MWERKS__, < 0x3202) \
|
#if BOOST_WORKAROUND(__MWERKS__, < 0x3202) \
|
||||||
|| BOOST_WORKAROUND(__EDG_VERSION__, <= 238) \
|
|| BOOST_WORKAROUND(__EDG_VERSION__, <= 238) \
|
||||||
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) \
|
|| BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610)) \
|
||||||
|| BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x840))
|
|| BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x840))
|
||||||
# define BOOST_MPL_CFG_ASSERT_BROKEN_POINTER_TO_POINTER_TO_MEMBER
|
# define BOOST_MPL_CFG_ASSERT_BROKEN_POINTER_TO_POINTER_TO_MEMBER
|
||||||
#endif
|
#endif
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
// agurt, 10/nov/06: use enums for Borland (which cannot cope with static constants)
|
// agurt, 10/nov/06: use enums for Borland (which cannot cope with static constants)
|
||||||
// and GCC (which issues "unused variable" warnings when static constants are used
|
// and GCC (which issues "unused variable" warnings when static constants are used
|
||||||
// at a function scope)
|
// at a function scope)
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) \
|
#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610)) \
|
||||||
|| (BOOST_MPL_CFG_GCC != 0) || (BOOST_MPL_CFG_GPU != 0) || defined(__PGI)
|
|| (BOOST_MPL_CFG_GCC != 0) || (BOOST_MPL_CFG_GPU != 0) || defined(__PGI)
|
||||||
# define BOOST_MPL_AUX_ASSERT_CONSTANT(T, expr) enum { expr }
|
# define BOOST_MPL_AUX_ASSERT_CONSTANT(T, expr) enum { expr }
|
||||||
#else
|
#else
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include <boost/mpl/aux_/config/workaround.hpp>
|
#include <boost/mpl/aux_/config/workaround.hpp>
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__, < 0x561)
|
#if BOOST_WORKAROUND(BOOST_BORLANDC, < 0x561)
|
||||||
// agurt, 12/nov/02: to suppress the bogus "Cannot have both a template class
|
// agurt, 12/nov/02: to suppress the bogus "Cannot have both a template class
|
||||||
// and function named 'xxx'" diagnostic
|
// and function named 'xxx'" diagnostic
|
||||||
# define BOOST_MPL_AUX_COMMON_NAME_WKND(name) \
|
# define BOOST_MPL_AUX_COMMON_NAME_WKND(name) \
|
||||||
@@ -29,6 +29,6 @@ template< typename > void name(); \
|
|||||||
|
|
||||||
# define BOOST_MPL_AUX_COMMON_NAME_WKND(name) /**/
|
# define BOOST_MPL_AUX_COMMON_NAME_WKND(name) /**/
|
||||||
|
|
||||||
#endif // __BORLANDC__
|
#endif // BOOST_BORLANDC
|
||||||
|
|
||||||
#endif // BOOST_MPL_AUX_COMMON_NAME_WKND_HPP_INCLUDED
|
#endif // BOOST_MPL_AUX_COMMON_NAME_WKND_HPP_INCLUDED
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
#if !defined(BOOST_MPL_CFG_NO_ADL_BARRIER_NAMESPACE) \
|
#if !defined(BOOST_MPL_CFG_NO_ADL_BARRIER_NAMESPACE) \
|
||||||
&& ( BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1400)) \
|
&& ( BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1400)) \
|
||||||
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) \
|
|| BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610)) \
|
||||||
|| BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x840)) \
|
|| BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x840)) \
|
||||||
|| BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3202)) \
|
|| BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3202)) \
|
||||||
|| BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, BOOST_TESTED_AT(810)) \
|
|| BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, BOOST_TESTED_AT(810)) \
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#if !defined(BOOST_MPL_CFG_NO_DEPENDENT_ARRAY_TYPES) \
|
#if !defined(BOOST_MPL_CFG_NO_DEPENDENT_ARRAY_TYPES) \
|
||||||
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
||||||
&& ( BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) \
|
&& ( BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610)) \
|
||||||
|| BOOST_WORKAROUND(BOOST_MSVC, <= 1300) \
|
|| BOOST_WORKAROUND(BOOST_MSVC, <= 1300) \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
#if !defined(BOOST_MPL_CFG_BCC590_WORKAROUNDS) \
|
#if !defined(BOOST_MPL_CFG_BCC590_WORKAROUNDS) \
|
||||||
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
||||||
&& BOOST_WORKAROUND(__BORLANDC__, >= 0x590) \
|
&& BOOST_WORKAROUND(BOOST_BORLANDC, >= 0x590) \
|
||||||
&& BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610))
|
&& BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610))
|
||||||
|
|
||||||
# define BOOST_MPL_CFG_BCC590_WORKAROUNDS
|
# define BOOST_MPL_CFG_BCC590_WORKAROUNDS
|
||||||
|
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#if !defined(BOOST_MPL_CFG_NO_BIND_TEMPLATE) \
|
#if !defined(BOOST_MPL_CFG_NO_BIND_TEMPLATE) \
|
||||||
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
||||||
&& ( BOOST_WORKAROUND(BOOST_MSVC, <= 1300) \
|
&& ( BOOST_WORKAROUND(BOOST_MSVC, <= 1300) \
|
||||||
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) \
|
|| BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610)) \
|
||||||
)
|
)
|
||||||
|
|
||||||
# define BOOST_MPL_CFG_NO_BIND_TEMPLATE
|
# define BOOST_MPL_CFG_NO_BIND_TEMPLATE
|
||||||
|
@@ -32,10 +32,10 @@
|
|||||||
# elif BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, BOOST_TESTED_AT(0x0304))
|
# elif BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, BOOST_TESTED_AT(0x0304))
|
||||||
# define BOOST_MPL_CFG_COMPILER_DIR gcc
|
# define BOOST_MPL_CFG_COMPILER_DIR gcc
|
||||||
|
|
||||||
# elif BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610))
|
# elif BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610))
|
||||||
# if !defined(BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES)
|
# if !defined(BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES)
|
||||||
# define BOOST_MPL_CFG_COMPILER_DIR bcc551
|
# define BOOST_MPL_CFG_COMPILER_DIR bcc551
|
||||||
# elif BOOST_WORKAROUND(__BORLANDC__, >= 0x590)
|
# elif BOOST_WORKAROUND(BOOST_BORLANDC, >= 0x590)
|
||||||
# define BOOST_MPL_CFG_COMPILER_DIR bcc
|
# define BOOST_MPL_CFG_COMPILER_DIR bcc
|
||||||
# else
|
# else
|
||||||
# define BOOST_MPL_CFG_COMPILER_DIR bcc_pre590
|
# define BOOST_MPL_CFG_COMPILER_DIR bcc_pre590
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#if !defined(BOOST_MPL_CFG_NO_NONTYPE_TEMPLATE_PARTIAL_SPEC) \
|
#if !defined(BOOST_MPL_CFG_NO_NONTYPE_TEMPLATE_PARTIAL_SPEC) \
|
||||||
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
||||||
&& BOOST_WORKAROUND(__BORLANDC__, < 0x582)
|
&& BOOST_WORKAROUND(BOOST_BORLANDC, < 0x582)
|
||||||
|
|
||||||
# define BOOST_MPL_CFG_NO_NONTYPE_TEMPLATE_PARTIAL_SPEC
|
# define BOOST_MPL_CFG_NO_NONTYPE_TEMPLATE_PARTIAL_SPEC
|
||||||
|
|
||||||
|
@@ -24,8 +24,8 @@
|
|||||||
|
|
||||||
#if !defined(BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
|
#if !defined(BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
|
||||||
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
||||||
&& BOOST_WORKAROUND(__BORLANDC__, >= 0x560) \
|
&& BOOST_WORKAROUND(BOOST_BORLANDC, >= 0x560) \
|
||||||
&& BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610))
|
&& BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610))
|
||||||
|
|
||||||
# define BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES
|
# define BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
#if !defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
|
#if !defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
|
||||||
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
||||||
&& ( BOOST_WORKAROUND(__MWERKS__, <= 0x3001) \
|
&& ( BOOST_WORKAROUND(__MWERKS__, <= 0x3001) \
|
||||||
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) \
|
|| BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610)) \
|
||||||
|| defined(BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
|
|| defined(BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#if !defined(BOOST_MPL_CFG_NO_NESTED_FORWARDING) \
|
#if !defined(BOOST_MPL_CFG_NO_NESTED_FORWARDING) \
|
||||||
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
||||||
&& BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610))
|
&& BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610))
|
||||||
|
|
||||||
# define BOOST_MPL_CFG_NO_NESTED_FORWARDING
|
# define BOOST_MPL_CFG_NO_NESTED_FORWARDING
|
||||||
|
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#if !defined(BOOST_MPL_CFG_BCC_INTEGRAL_CONSTANTS) \
|
#if !defined(BOOST_MPL_CFG_BCC_INTEGRAL_CONSTANTS) \
|
||||||
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
||||||
&& BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610))
|
&& BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610))
|
||||||
|
|
||||||
# define BOOST_MPL_CFG_BCC_INTEGRAL_CONSTANTS
|
# define BOOST_MPL_CFG_BCC_INTEGRAL_CONSTANTS
|
||||||
|
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#if !defined(BOOST_MPL_CFG_USE_OPERATORS_OVERLOADING) \
|
#if !defined(BOOST_MPL_CFG_USE_OPERATORS_OVERLOADING) \
|
||||||
&& ( BOOST_WORKAROUND(BOOST_MSVC, <= 1300) \
|
&& ( BOOST_WORKAROUND(BOOST_MSVC, <= 1300) \
|
||||||
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) \
|
|| BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610)) \
|
||||||
|| BOOST_WORKAROUND(__EDG_VERSION__, <= 245) \
|
|| BOOST_WORKAROUND(__EDG_VERSION__, <= 245) \
|
||||||
|| BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, <= 0x0295) \
|
|| BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, <= 0x0295) \
|
||||||
|| BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600)) \
|
|| BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600)) \
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#if !defined(BOOST_MPL_CFG_BROKEN_OVERLOAD_RESOLUTION) \
|
#if !defined(BOOST_MPL_CFG_BROKEN_OVERLOAD_RESOLUTION) \
|
||||||
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
||||||
&& ( BOOST_WORKAROUND(__BORLANDC__, < 0x590) \
|
&& ( BOOST_WORKAROUND(BOOST_BORLANDC, < 0x590) \
|
||||||
|| BOOST_WORKAROUND(__MWERKS__, < 0x3001) \
|
|| BOOST_WORKAROUND(__MWERKS__, < 0x3001) \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#if !defined(BOOST_MPL_CFG_BROKEN_PP_MACRO_EXPANSION) \
|
#if !defined(BOOST_MPL_CFG_BROKEN_PP_MACRO_EXPANSION) \
|
||||||
&& ( BOOST_WORKAROUND(__MWERKS__, <= 0x3003) \
|
&& ( BOOST_WORKAROUND(__MWERKS__, <= 0x3003) \
|
||||||
|| BOOST_WORKAROUND(__BORLANDC__, < 0x582) \
|
|| BOOST_WORKAROUND(BOOST_BORLANDC, < 0x582) \
|
||||||
|| BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(502)) \
|
|| BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(502)) \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#if !defined(BOOST_MPL_CFG_NO_TEMPLATE_TEMPLATE_PARAMETERS) \
|
#if !defined(BOOST_MPL_CFG_NO_TEMPLATE_TEMPLATE_PARAMETERS) \
|
||||||
&& ( defined(BOOST_NO_TEMPLATE_TEMPLATES) \
|
&& ( defined(BOOST_NO_TEMPLATE_TEMPLATES) \
|
||||||
|| BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x590) ) \
|
|| BOOST_WORKAROUND( BOOST_BORLANDC, BOOST_TESTED_AT( 0x590) ) \
|
||||||
)
|
)
|
||||||
|
|
||||||
# define BOOST_MPL_CFG_NO_TEMPLATE_TEMPLATE_PARAMETERS
|
# define BOOST_MPL_CFG_NO_TEMPLATE_TEMPLATE_PARAMETERS
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
#if !defined(BOOST_MPL_CFG_EXTENDED_TEMPLATE_PARAMETERS_MATCHING) \
|
#if !defined(BOOST_MPL_CFG_EXTENDED_TEMPLATE_PARAMETERS_MATCHING) \
|
||||||
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
&& !defined(BOOST_MPL_PREPROCESSING_MODE) \
|
||||||
&& ( BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, BOOST_TESTED_AT(0x0302)) \
|
&& ( BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, BOOST_TESTED_AT(0x0302)) \
|
||||||
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) \
|
|| BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610)) \
|
||||||
)
|
)
|
||||||
|
|
||||||
# define BOOST_MPL_CFG_EXTENDED_TEMPLATE_PARAMETERS_MATCHING
|
# define BOOST_MPL_CFG_EXTENDED_TEMPLATE_PARAMETERS_MATCHING
|
||||||
|
@@ -26,7 +26,7 @@ namespace boost { namespace mpl {
|
|||||||
template< typename Tag > struct count_impl
|
template< typename Tag > struct count_impl
|
||||||
{
|
{
|
||||||
template< typename Sequence, typename T > struct apply
|
template< typename Sequence, typename T > struct apply
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__,BOOST_TESTED_AT(0x561))
|
#if BOOST_WORKAROUND(BOOST_BORLANDC,BOOST_TESTED_AT(0x561))
|
||||||
{
|
{
|
||||||
typedef typename count_if< Sequence,same_as<T> >::type type;
|
typedef typename count_if< Sequence,same_as<T> >::type type;
|
||||||
BOOST_STATIC_CONSTANT(int, value = BOOST_MPL_AUX_VALUE_WKND(type)::value);
|
BOOST_STATIC_CONSTANT(int, value = BOOST_MPL_AUX_VALUE_WKND(type)::value);
|
||||||
|
@@ -60,7 +60,7 @@ struct AUX778076_FOLD_IMPL_NAME;
|
|||||||
|
|
||||||
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
||||||
|
|
||||||
# if !BOOST_WORKAROUND(__BORLANDC__, < 0x600)
|
# if !BOOST_WORKAROUND(BOOST_BORLANDC, < 0x600)
|
||||||
|
|
||||||
# define BOOST_PP_ITERATION_PARAMS_1 \
|
# define BOOST_PP_ITERATION_PARAMS_1 \
|
||||||
(3,(0, BOOST_MPL_LIMIT_UNROLLING, <boost/mpl/aux_/fold_impl_body.hpp>))
|
(3,(0, BOOST_MPL_LIMIT_UNROLLING, <boost/mpl/aux_/fold_impl_body.hpp>))
|
||||||
@@ -125,7 +125,7 @@ struct AUX778076_FOLD_IMPL_NAME<-1,Last,Last,State,ForwardOp>
|
|||||||
typedef Last iterator;
|
typedef Last iterator;
|
||||||
};
|
};
|
||||||
|
|
||||||
# else // BOOST_WORKAROUND(__BORLANDC__, < 0x600)
|
# else // BOOST_WORKAROUND(BOOST_BORLANDC, < 0x600)
|
||||||
|
|
||||||
// Borland have some serious problems with the unrolled version, so
|
// Borland have some serious problems with the unrolled version, so
|
||||||
// we always use a basic implementation
|
// we always use a basic implementation
|
||||||
@@ -164,7 +164,7 @@ struct AUX778076_FOLD_IMPL_NAME<N,Last,Last,State,ForwardOp >
|
|||||||
typedef state type;
|
typedef state type;
|
||||||
};
|
};
|
||||||
|
|
||||||
# endif // BOOST_WORKAROUND(__BORLANDC__, < 0x600)
|
# endif // BOOST_WORKAROUND(BOOST_BORLANDC, < 0x600)
|
||||||
|
|
||||||
#else // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
#else // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||||
|
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
# include <boost/mpl/if.hpp>
|
# include <boost/mpl/if.hpp>
|
||||||
# include <boost/mpl/bool.hpp>
|
# include <boost/mpl/bool.hpp>
|
||||||
# include <boost/mpl/aux_/msvc_is_class.hpp>
|
# include <boost/mpl/aux_/msvc_is_class.hpp>
|
||||||
#elif BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610))
|
#elif BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610))
|
||||||
# include <boost/mpl/if.hpp>
|
# include <boost/mpl/if.hpp>
|
||||||
# include <boost/mpl/bool.hpp>
|
# include <boost/mpl/bool.hpp>
|
||||||
# include <boost/mpl/aux_/yes_no.hpp>
|
# include <boost/mpl/aux_/yes_no.hpp>
|
||||||
@@ -62,7 +62,7 @@ struct has_rebind
|
|||||||
template< typename T > struct has_rebind_tag {};
|
template< typename T > struct has_rebind_tag {};
|
||||||
no_tag operator|(has_rebind_tag<int>, void const volatile*);
|
no_tag operator|(has_rebind_tag<int>, void const volatile*);
|
||||||
|
|
||||||
# if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610))
|
# if !BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610))
|
||||||
template< typename T >
|
template< typename T >
|
||||||
struct has_rebind
|
struct has_rebind
|
||||||
{
|
{
|
||||||
@@ -71,7 +71,7 @@ struct has_rebind
|
|||||||
sizeof(has_rebind_tag<int>() | get()) == sizeof(yes_tag)
|
sizeof(has_rebind_tag<int>() | get()) == sizeof(yes_tag)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
# else // __BORLANDC__
|
# else // BOOST_BORLANDC
|
||||||
template< typename T >
|
template< typename T >
|
||||||
struct has_rebind_impl
|
struct has_rebind_impl
|
||||||
{
|
{
|
||||||
@@ -90,7 +90,7 @@ struct has_rebind
|
|||||||
>::type
|
>::type
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
# endif // __BORLANDC__
|
# endif // BOOST_BORLANDC
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -63,7 +63,7 @@ struct AUX_WRAPPER_NAME
|
|||||||
public:
|
public:
|
||||||
typedef AUX_WRAPPER_INST(next_value) next;
|
typedef AUX_WRAPPER_INST(next_value) next;
|
||||||
typedef AUX_WRAPPER_INST(prior_value) prior;
|
typedef AUX_WRAPPER_INST(prior_value) prior;
|
||||||
#elif BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x561)) \
|
#elif BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x561)) \
|
||||||
|| BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(502)) \
|
|| BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(502)) \
|
||||||
|| (BOOST_WORKAROUND(__HP_aCC, <= 53800) && (BOOST_WORKAROUND(__hpxstd98, != 1)))
|
|| (BOOST_WORKAROUND(__HP_aCC, <= 53800) && (BOOST_WORKAROUND(__hpxstd98, != 1)))
|
||||||
typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (N + 1)) ) next;
|
typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (N + 1)) ) next;
|
||||||
|
@@ -110,7 +110,7 @@ template< typename T > struct has_rebind_tag;
|
|||||||
typedef BOOST_PP_CAT(name,_rebind) rebind; \
|
typedef BOOST_PP_CAT(name,_rebind) rebind; \
|
||||||
/**/
|
/**/
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610))
|
#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610))
|
||||||
# define BOOST_MPL_AUX_LAMBDA_SUPPORT_HAS_REBIND(i, name, params) \
|
# define BOOST_MPL_AUX_LAMBDA_SUPPORT_HAS_REBIND(i, name, params) \
|
||||||
template< BOOST_MPL_PP_PARAMS(i,typename T) > \
|
template< BOOST_MPL_PP_PARAMS(i,typename T) > \
|
||||||
::boost::mpl::aux::yes_tag operator|( \
|
::boost::mpl::aux::yes_tag operator|( \
|
||||||
@@ -134,7 +134,7 @@ template< BOOST_MPL_PP_PARAMS(i,typename T) > \
|
|||||||
# define BOOST_MPL_AUX_LAMBDA_SUPPORT_HAS_REBIND(i, name, params) /**/
|
# define BOOST_MPL_AUX_LAMBDA_SUPPORT_HAS_REBIND(i, name, params) /**/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# if !defined(__BORLANDC__)
|
# if !defined(BOOST_BORLANDC)
|
||||||
# define BOOST_MPL_AUX_LAMBDA_SUPPORT(i, name, params) \
|
# define BOOST_MPL_AUX_LAMBDA_SUPPORT(i, name, params) \
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(i, name, params) \
|
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(i, name, params) \
|
||||||
}; \
|
}; \
|
||||||
@@ -160,7 +160,7 @@ class BOOST_PP_CAT(name,_rebind) \
|
|||||||
typedef typename name< BOOST_MPL_PP_PARAMS(i,U) >::type type; \
|
typedef typename name< BOOST_MPL_PP_PARAMS(i,U) >::type type; \
|
||||||
}; \
|
}; \
|
||||||
/**/
|
/**/
|
||||||
# endif // __BORLANDC__
|
# endif // BOOST_BORLANDC
|
||||||
|
|
||||||
#endif // __EDG_VERSION__
|
#endif // __EDG_VERSION__
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
#include <boost/mpl/aux_/config/workaround.hpp>
|
#include <boost/mpl/aux_/config/workaround.hpp>
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, BOOST_TESTED_AT(0x0302)) \
|
#if BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, BOOST_TESTED_AT(0x0302)) \
|
||||||
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x561)) \
|
|| BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x561)) \
|
||||||
|| BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x530)) \
|
|| BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x530)) \
|
||||||
|| BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x840))
|
|| BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x840))
|
||||||
|
|
||||||
|
@@ -29,7 +29,7 @@ template< typename Tag >
|
|||||||
struct size_impl
|
struct size_impl
|
||||||
{
|
{
|
||||||
template< typename Sequence > struct apply
|
template< typename Sequence > struct apply
|
||||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x561))
|
#if !BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x561))
|
||||||
: distance<
|
: distance<
|
||||||
typename begin<Sequence>::type
|
typename begin<Sequence>::type
|
||||||
, typename end<Sequence>::type
|
, typename end<Sequence>::type
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include <boost/mpl/aux_/config/workaround.hpp>
|
#include <boost/mpl/aux_/config/workaround.hpp>
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x561)) \
|
#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x561)) \
|
||||||
|| BOOST_WORKAROUND(__GNUC__, < 3) \
|
|| BOOST_WORKAROUND(__GNUC__, < 3) \
|
||||||
|| BOOST_WORKAROUND(__MWERKS__, <= 0x3001)
|
|| BOOST_WORKAROUND(__MWERKS__, <= 0x3001)
|
||||||
# define BOOST_MPL_AUX_STATIC_CAST(T, expr) (T)(expr)
|
# define BOOST_MPL_AUX_STATIC_CAST(T, expr) (T)(expr)
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
#include <boost/preprocessor/repetition/enum_params.hpp>
|
#include <boost/preprocessor/repetition/enum_params.hpp>
|
||||||
#include <boost/preprocessor/repetition/enum_trailing_params.hpp>
|
#include <boost/preprocessor/repetition/enum_trailing_params.hpp>
|
||||||
|
|
||||||
#if BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x590) )
|
#if BOOST_WORKAROUND( BOOST_BORLANDC, BOOST_TESTED_AT(0x590) )
|
||||||
# include <boost/type_traits/is_class.hpp>
|
# include <boost/type_traits/is_class.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -196,7 +196,7 @@ struct trait \
|
|||||||
}; \
|
}; \
|
||||||
/**/
|
/**/
|
||||||
|
|
||||||
# elif BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x590) )
|
# elif BOOST_WORKAROUND( BOOST_BORLANDC, BOOST_TESTED_AT(0x590) )
|
||||||
|
|
||||||
# define BOOST_MPL_HAS_XXX_TRAIT_NAMED_BCB_DEF(trait, trait_tester, name, default_) \
|
# define BOOST_MPL_HAS_XXX_TRAIT_NAMED_BCB_DEF(trait, trait_tester, name, default_) \
|
||||||
template< typename T, bool IS_CLASS > \
|
template< typename T, bool IS_CLASS > \
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
|
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
|
||||||
&& !BOOST_WORKAROUND(__BORLANDC__, <= 0x551)
|
&& !BOOST_WORKAROUND(BOOST_BORLANDC, <= 0x551)
|
||||||
BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN
|
BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN
|
||||||
// 'bool' constant doesn't have 'next'/'prior' members
|
// 'bool' constant doesn't have 'next'/'prior' members
|
||||||
template< bool C >
|
template< bool C >
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#include <boost/mpl/aux_/na_spec.hpp>
|
#include <boost/mpl/aux_/na_spec.hpp>
|
||||||
#include <boost/mpl/aux_/config/workaround.hpp>
|
#include <boost/mpl/aux_/config/workaround.hpp>
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610))
|
#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610))
|
||||||
# define BOOST_MPL_CFG_STRIPPED_DOWN_LOWER_BOUND_IMPL
|
# define BOOST_MPL_CFG_STRIPPED_DOWN_LOWER_BOUND_IMPL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
// resolves conflicts with 'boost::numeric_cast' function template.
|
// resolves conflicts with 'boost::numeric_cast' function template.
|
||||||
// use it in your own code _only_ if you care about compatibility with
|
// use it in your own code _only_ if you care about compatibility with
|
||||||
// these outdated compilers!
|
// these outdated compilers!
|
||||||
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x570) )
|
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) || BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x570) )
|
||||||
# define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast_
|
# define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast_
|
||||||
#else
|
#else
|
||||||
# define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast
|
# define BOOST_MPL_AUX_NUMERIC_CAST numeric_cast
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#include <boost/mpl/aux_/na_spec.hpp>
|
#include <boost/mpl/aux_/na_spec.hpp>
|
||||||
#include <boost/mpl/aux_/config/workaround.hpp>
|
#include <boost/mpl/aux_/config/workaround.hpp>
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610))
|
#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x610))
|
||||||
# define BOOST_MPL_CFG_STRIPPED_DOWN_UPPER_BOUND_IMPL
|
# define BOOST_MPL_CFG_STRIPPED_DOWN_UPPER_BOUND_IMPL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -65,7 +65,7 @@ template< BOOST_MPL_AUX_NTTP_DECL(long, n_) >
|
|||||||
struct at_impl< aux::vector_tag<n_> >
|
struct at_impl< aux::vector_tag<n_> >
|
||||||
{
|
{
|
||||||
template< typename Vector, typename N > struct apply
|
template< typename Vector, typename N > struct apply
|
||||||
#if !defined(__BORLANDC__)
|
#if !defined(BOOST_BORLANDC)
|
||||||
: v_at<
|
: v_at<
|
||||||
Vector
|
Vector
|
||||||
, BOOST_MPL_AUX_VALUE_WKND(N)::value
|
, BOOST_MPL_AUX_VALUE_WKND(N)::value
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#if !BOOST_WORKAROUND(__BORLANDC__, < 0x600)
|
#if !BOOST_WORKAROUND(BOOST_BORLANDC, < 0x600)
|
||||||
# define INTEGRAL_WRAPPER_RUNTIME_TEST(i, T) \
|
# define INTEGRAL_WRAPPER_RUNTIME_TEST(i, T) \
|
||||||
BOOST_TEST(( WRAPPER(T,i)() == i )); \
|
BOOST_TEST(( WRAPPER(T,i)() == i )); \
|
||||||
BOOST_TEST(( WRAPPER(T,i)::value == i )); \
|
BOOST_TEST(( WRAPPER(T,i)::value == i )); \
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
#define CONSTEXPR_INTEGRAL_TEST(T, i) { static_assert(T() == i, "Constexpr for integral constant failed"); }
|
#define CONSTEXPR_INTEGRAL_TEST(T, i) { static_assert(T() == i, "Constexpr for integral constant failed"); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x582))
|
||||||
// agurt 20/nov/06: see http://article.gmane.org/gmane.comp.lib.boost.devel/151065
|
// agurt 20/nov/06: see http://article.gmane.org/gmane.comp.lib.boost.devel/151065
|
||||||
#define INTEGRAL_WRAPPER_TEST(unused1, i, T) \
|
#define INTEGRAL_WRAPPER_TEST(unused1, i, T) \
|
||||||
{ \
|
{ \
|
||||||
|
@@ -38,7 +38,7 @@ MPL_TEST_CASE()
|
|||||||
AUX_LAMBDA_TEST( int& );
|
AUX_LAMBDA_TEST( int& );
|
||||||
AUX_LAMBDA_TEST( int* );
|
AUX_LAMBDA_TEST( int* );
|
||||||
#if !BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, <= 0x0295) \
|
#if !BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, <= 0x0295) \
|
||||||
&& !BOOST_WORKAROUND(__BORLANDC__, < 0x600)
|
&& !BOOST_WORKAROUND(BOOST_BORLANDC, < 0x600)
|
||||||
AUX_LAMBDA_TEST( int[] );
|
AUX_LAMBDA_TEST( int[] );
|
||||||
#endif
|
#endif
|
||||||
AUX_LAMBDA_TEST( int[10] );
|
AUX_LAMBDA_TEST( int[10] );
|
||||||
|
Reference in New Issue
Block a user