mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-05 15:54:39 +02:00
lambda support bug fix
[SVN r26547]
This commit is contained in:
@@ -255,14 +255,20 @@ struct AUX778076_OP_NAME
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#if AUX778076_OP_ARITY == 2
|
#if AUX778076_OP_ARITY != 2
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, AUX778076_OP_NAME, (N1, N2))
|
|
||||||
#else
|
# if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
||||||
AUX778076_OP_ARITY
|
AUX778076_OP_ARITY
|
||||||
, AUX778076_OP_NAME
|
, AUX778076_OP_NAME
|
||||||
, ( BOOST_MPL_PP_PARTIAL_SPEC_PARAMS(2, N, na) )
|
, ( BOOST_MPL_PP_PARTIAL_SPEC_PARAMS(2, N, na) )
|
||||||
)
|
)
|
||||||
|
# else
|
||||||
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, BOOST_PP_CAT(AUX778076_OP_NAME,2), (N1, N2))
|
||||||
|
# endif
|
||||||
|
|
||||||
|
#else
|
||||||
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, AUX778076_OP_NAME, (N1, N2))
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -106,11 +106,7 @@ struct bitand_2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, bitand_2, (N1, N2))
|
||||||
5
|
|
||||||
, bitand_
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -106,11 +106,7 @@ struct bitor_2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, bitor_2, (N1, N2))
|
||||||
5
|
|
||||||
, bitor_
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -106,11 +106,7 @@ struct bitxor_2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, bitxor_2, (N1, N2))
|
||||||
5
|
|
||||||
, bitxor_
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -105,11 +105,7 @@ struct divides2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, divides2, (N1, N2))
|
||||||
5
|
|
||||||
, divides
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -105,11 +105,7 @@ struct minus2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, minus2, (N1, N2))
|
||||||
5
|
|
||||||
, minus
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -105,11 +105,7 @@ struct plus2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, plus2, (N1, N2))
|
||||||
5
|
|
||||||
, plus
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -105,11 +105,7 @@ struct times2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, times2, (N1, N2))
|
||||||
5
|
|
||||||
, times
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -106,11 +106,7 @@ struct bitand_2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, bitand_2, (N1, N2))
|
||||||
5
|
|
||||||
, bitand_
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -106,11 +106,7 @@ struct bitor_2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, bitor_2, (N1, N2))
|
||||||
5
|
|
||||||
, bitor_
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -106,11 +106,7 @@ struct bitxor_2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, bitxor_2, (N1, N2))
|
||||||
5
|
|
||||||
, bitxor_
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -105,11 +105,7 @@ struct divides2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, divides2, (N1, N2))
|
||||||
5
|
|
||||||
, divides
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -105,11 +105,7 @@ struct minus2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, minus2, (N1, N2))
|
||||||
5
|
|
||||||
, minus
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -105,11 +105,7 @@ struct plus2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, plus2, (N1, N2))
|
||||||
5
|
|
||||||
, plus
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -105,11 +105,7 @@ struct times2
|
|||||||
>::type >::type
|
>::type >::type
|
||||||
|
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, times2, (N1, N2))
|
||||||
5
|
|
||||||
, times
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -101,11 +101,7 @@ struct bitand_2
|
|||||||
, typename bitand_tag<N2>::type
|
, typename bitand_tag<N2>::type
|
||||||
>::template apply< N1,N2 >::type
|
>::template apply< N1,N2 >::type
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, bitand_2, (N1, N2))
|
||||||
5
|
|
||||||
, bitand_
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -101,11 +101,7 @@ struct bitor_2
|
|||||||
, typename bitor_tag<N2>::type
|
, typename bitor_tag<N2>::type
|
||||||
>::template apply< N1,N2 >::type
|
>::template apply< N1,N2 >::type
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, bitor_2, (N1, N2))
|
||||||
5
|
|
||||||
, bitor_
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -101,11 +101,7 @@ struct bitxor_2
|
|||||||
, typename bitxor_tag<N2>::type
|
, typename bitxor_tag<N2>::type
|
||||||
>::template apply< N1,N2 >::type
|
>::template apply< N1,N2 >::type
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, bitxor_2, (N1, N2))
|
||||||
5
|
|
||||||
, bitxor_
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -100,11 +100,7 @@ struct divides2
|
|||||||
, typename divides_tag<N2>::type
|
, typename divides_tag<N2>::type
|
||||||
>::template apply< N1,N2 >::type
|
>::template apply< N1,N2 >::type
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, divides2, (N1, N2))
|
||||||
5
|
|
||||||
, divides
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -100,11 +100,7 @@ struct minus2
|
|||||||
, typename minus_tag<N2>::type
|
, typename minus_tag<N2>::type
|
||||||
>::template apply< N1,N2 >::type
|
>::template apply< N1,N2 >::type
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, minus2, (N1, N2))
|
||||||
5
|
|
||||||
, minus
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -100,11 +100,7 @@ struct plus2
|
|||||||
, typename plus_tag<N2>::type
|
, typename plus_tag<N2>::type
|
||||||
>::template apply< N1,N2 >::type
|
>::template apply< N1,N2 >::type
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, plus2, (N1, N2))
|
||||||
5
|
|
||||||
, plus
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -100,11 +100,7 @@ struct times2
|
|||||||
, typename times_tag<N2>::type
|
, typename times_tag<N2>::type
|
||||||
>::template apply< N1,N2 >::type
|
>::template apply< N1,N2 >::type
|
||||||
{
|
{
|
||||||
BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(
|
BOOST_MPL_AUX_LAMBDA_SUPPORT(2, times2, (N1, N2))
|
||||||
5
|
|
||||||
, times
|
|
||||||
, ( N1, N2, na, na, na )
|
|
||||||
)
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user