Compare commits

...

13 Commits

Author SHA1 Message Date
nobody 1ec7a7c8bb This commit was manufactured by cvs2svn to create tag
'Version_1_29_0'.

[SVN r15904]
2002-10-11 15:17:55 +00:00
Aleksey Gurtovoy 7c3f3f5959 cleanup
[SVN r15805]
2002-10-08 09:54:18 +00:00
Aleksey Gurtovoy 22037577d5 fixes from main trunk
[SVN r15804]
2002-10-08 09:48:52 +00:00
nobody 442a860d0a This commit was manufactured by cvs2svn to create branch 'RC_1_29_0'.
[SVN r15797]
2002-10-07 23:02:39 +00:00
Dave Abrahams c96091753b workarounds for IRIX CC
[SVN r15776]
2002-10-07 16:25:37 +00:00
Aleksey Gurtovoy cb39883773 merged from main trunk
[SVN r15767]
2002-10-07 13:10:10 +00:00
Aleksey Gurtovoy db832a45e3 merged from main trunk
[SVN r15765]
2002-10-07 12:55:15 +00:00
nobody a716f88479 This commit was manufactured by cvs2svn to create branch 'RC_1_29_0'.
[SVN r15764]
2002-10-07 12:10:00 +00:00
Dave Abrahams 30d56dbc29 Patches for CWPro8.3
[SVN r15734]
2002-10-05 16:39:34 +00:00
Ralf W. Grosse-Kunstleve d8c5155e10 changes from trunk merged to enable MIPSpro compilations
[SVN r15699]
2002-10-03 23:23:54 +00:00
nobody c570dfb493 This commit was manufactured by cvs2svn to create branch 'RC_1_29_0'.
[SVN r15564]
2002-09-30 03:35:54 +00:00
John Maddock d4e4f05b81 Borland bug check needs to check for version 0x570
[SVN r15492]
2002-09-24 11:39:23 +00:00
nobody b7def3b7d4 This commit was manufactured by cvs2svn to create branch 'RC_1_29_0'.
[SVN r15460]
2002-09-19 20:49:39 +00:00
56 changed files with 485 additions and 543 deletions
-1
View File
@@ -1 +0,0 @@
ECHO is on.
+9 -7
View File
@@ -215,13 +215,6 @@ struct BOOST_PP_CAT(apply,i)
{
};
//: workaround for ETI bug
template<>
struct BOOST_PP_CAT(apply,i)<AUX_APPLY_N_SPEC_PARAMS(i, int)>
{
typedef BOOST_PP_CAT(apply,i) type;
};
# elif defined(BOOST_BROKEN_DEFAULT_TEMPLATE_PARAMETERS_IN_NESTED_TEMPLATES)
// MWCW/Borland version
@@ -263,6 +256,15 @@ struct BOOST_PP_CAT(apply,i)
# endif // workarounds
#if defined(BOOST_MPL_MSVC_ETI_BUG)
//: workaround for ETI bug
template<>
struct BOOST_PP_CAT(apply,i)<AUX_APPLY_N_SPEC_PARAMS(i, int)>
{
typedef BOOST_PP_CAT(apply,i) type;
};
#endif
#if defined(BOOST_MPL_NO_FULL_LAMBDA_SUPPORT)
#if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
template<>
+9 -8
View File
@@ -25,6 +25,7 @@
# include "boost/mpl/arg_fwd.hpp"
# include "boost/mpl/void.hpp"
# include "boost/mpl/aux_/arity_spec.hpp"
# include "boost/mpl/aux_/arg_typedef.hpp"
# include "boost/static_assert.hpp"
#endif
@@ -95,9 +96,7 @@ template<> struct arg<i>
{
BOOST_STATIC_CONSTANT(int, value = i);
typedef arg<BOOST_PP_INC(i)> next;
#if defined(BOOST_MPL_NO_FULL_LAMBDA_SUPPORT)
typedef void_ tag;
#endif
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
AUX_ARG_N_DEFAULT_PARAMS(typename U, void_)
@@ -106,7 +105,9 @@ template<> struct arg<i>
{
typedef BOOST_PP_CAT(U,i) type;
#if !defined(__BORLANDC__) || (__BORLANDC__ > 0x561 && defined(BOOST_STRICT_CONFIG))
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
#endif
};
};
@@ -116,9 +117,7 @@ template<> struct arg<i>
template<> struct arg<-1>
{
BOOST_STATIC_CONSTANT(int, value = -1);
#if defined(BOOST_MPL_NO_FULL_LAMBDA_SUPPORT)
typedef void_ tag;
#endif
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
AUX_ARG_N_DEFAULT_PARAMS(typename U, void_)
@@ -127,7 +126,9 @@ template<> struct arg<-1>
{
typedef U1 type;
#if !defined(__BORLANDC__) || (__BORLANDC__ > 0x561 && defined(BOOST_STRICT_CONFIG))
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
#endif
};
};
+1 -1
View File
@@ -26,7 +26,7 @@
#if defined(BOOST_MPL_USE_APPLY_INTERNALLY) \
|| defined(BOOST_BROKEN_DEFAULT_TEMPLATE_PARAMETERS_IN_NESTED_TEMPLATES) \
|| (defined(BOOST_MSVC) && (BOOST_MSVC <= 1300))
|| defined(BOOST_MSVC) && (BOOST_MSVC < 1300 || BOOST_MSVC == 1300 && defined(BOOST_MPL_PREPROCESSING_MODE))
# if !defined(BOOST_MPL_PREPROCESSING_MODE)
# include "boost/mpl/apply.hpp"
+28
View File
@@ -0,0 +1,28 @@
//-----------------------------------------------------------------------------
// boost mpl/aux_/arg_typedef.hpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2001-02
// Aleksey Gurtovoy
//
// Permission to use, copy, modify, distribute and sell this software
// and its documentation for any purpose is hereby granted without fee,
// provided that the above copyright notice appears in all copies and
// that both the copyright notice and this permission notice appear in
// supporting documentation. No representations are made about the
// suitability of this software for any purpose. It is provided "as is"
// without express or implied warranty.
#ifndef BOOST_MPL_AUX_ARG_TYPEDEF_HPP_INCLUDED
#define BOOST_MPL_AUX_ARG_TYPEDEF_HPP_INCLUDED
#include "boost/mpl/aux_/config/lambda.hpp"
#if defined(BOOST_MPL_NO_FULL_LAMBDA_SUPPORT)
# define BOOST_MPL_AUX_ARG_TYPEDEF(T, name) typedef T name;
#else
# define BOOST_MPL_AUX_ARG_TYPEDEF(T, name) /**/
#endif
#endif // BOOST_MPL_AUX_ARG_TYPEDEF_HPP_INCLUDED
+1 -1
View File
@@ -32,7 +32,7 @@
#endif
#if defined(__MWERKS__) && __MWERKS__ <= 0x3001 \
|| defined(__BORLANDC__) && (__BORLANDC__ <= 0x561 || !defined(BOOST_STRICT_CONFIG)) \
|| defined(__BORLANDC__) && (__BORLANDC__ <= 0x570 || !defined(BOOST_STRICT_CONFIG)) \
|| defined(BOOST_NO_DEFAULT_TEMPLATE_PARAMETERS_IN_NESTED_TEMPLATES) \
&& !defined(BOOST_BROKEN_DEFAULT_TEMPLATE_PARAMETERS_IN_NESTED_TEMPLATES)
# define BOOST_BROKEN_DEFAULT_TEMPLATE_PARAMETERS_IN_NESTED_TEMPLATES
+12 -13
View File
@@ -6,9 +6,8 @@ namespace mpl {
template<> struct arg<-1>
{
static int const value = -1;
typedef void_ tag;
BOOST_STATIC_CONSTANT(int, value = -1);
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1, typename U2, typename U3, typename U4, typename U5
@@ -21,9 +20,9 @@ template<> struct arg<-1>
template<> struct arg<1>
{
static int const value = 1;
BOOST_STATIC_CONSTANT(int, value = 1);
typedef arg<2> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1, typename U2, typename U3, typename U4, typename U5
@@ -36,9 +35,9 @@ template<> struct arg<1>
template<> struct arg<2>
{
static int const value = 2;
BOOST_STATIC_CONSTANT(int, value = 2);
typedef arg<3> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1, typename U2, typename U3, typename U4, typename U5
@@ -51,9 +50,9 @@ template<> struct arg<2>
template<> struct arg<3>
{
static int const value = 3;
BOOST_STATIC_CONSTANT(int, value = 3);
typedef arg<4> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1, typename U2, typename U3, typename U4, typename U5
@@ -66,9 +65,9 @@ template<> struct arg<3>
template<> struct arg<4>
{
static int const value = 4;
BOOST_STATIC_CONSTANT(int, value = 4);
typedef arg<5> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1, typename U2, typename U3, typename U4, typename U5
@@ -81,9 +80,9 @@ template<> struct arg<4>
template<> struct arg<5>
{
static int const value = 5;
BOOST_STATIC_CONSTANT(int, value = 5);
typedef arg<6> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1, typename U2, typename U3, typename U4, typename U5
@@ -27,7 +27,7 @@ template<
>
struct resolve_bind_arg< arg<N>,U1,U2,U3,U4,U5 >
{
typedef typename apply5< arg<N>,U1,U2,U3,U4,U5 >::type type;
typedef typename apply5<mpl::arg< N>,U1,U2,U3,U4,U5 >::type type;
};
template<
@@ -46,7 +46,7 @@ template<
>
struct resolve_bind_arg< arg<N>,U1,U2,U3,U4,U5 >
{
typedef typename apply5< arg<N>,U1,U2,U3,U4,U5 >::type type;
typedef typename apply5<mpl::arg< N>,U1,U2,U3,U4,U5 >::type type;
};
template<
@@ -85,7 +85,7 @@ struct bind0
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -124,7 +124,7 @@ struct bind1
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -168,7 +168,7 @@ struct bind2
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -217,7 +217,7 @@ struct bind3
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -271,7 +271,7 @@ struct bind4
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -331,7 +331,7 @@ struct bind5
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -12,7 +12,7 @@ struct lambda_helper1
{
struct rebind
{
static int const arity = 1;
BOOST_STATIC_CONSTANT(int, arity = 1);
typedef T1 arg1;
template< typename U1 > struct apply
@@ -30,7 +30,7 @@ struct lambda_helper2
{
struct rebind
{
static int const arity = 2;
BOOST_STATIC_CONSTANT(int, arity = 2);
typedef T1 arg1;
typedef T2 arg2;
@@ -49,7 +49,7 @@ struct lambda_helper3
{
struct rebind
{
static int const arity = 3;
BOOST_STATIC_CONSTANT(int, arity = 3);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -69,7 +69,7 @@ struct lambda_helper4
{
struct rebind
{
static int const arity = 4;
BOOST_STATIC_CONSTANT(int, arity = 4);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -97,7 +97,7 @@ struct lambda_helper5
{
struct rebind
{
static int const arity = 5;
BOOST_STATIC_CONSTANT(int, arity = 5);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -6,9 +6,8 @@ namespace mpl {
template<> struct arg<-1>
{
static int const value = -1;
typedef void_ tag;
BOOST_STATIC_CONSTANT(int, value = -1);
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -22,9 +21,9 @@ template<> struct arg<-1>
template<> struct arg<1>
{
static int const value = 1;
BOOST_STATIC_CONSTANT(int, value = 1);
typedef arg<2> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -38,9 +37,9 @@ template<> struct arg<1>
template<> struct arg<2>
{
static int const value = 2;
BOOST_STATIC_CONSTANT(int, value = 2);
typedef arg<3> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -54,9 +53,9 @@ template<> struct arg<2>
template<> struct arg<3>
{
static int const value = 3;
BOOST_STATIC_CONSTANT(int, value = 3);
typedef arg<4> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -70,9 +69,9 @@ template<> struct arg<3>
template<> struct arg<4>
{
static int const value = 4;
BOOST_STATIC_CONSTANT(int, value = 4);
typedef arg<5> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -86,9 +85,9 @@ template<> struct arg<4>
template<> struct arg<5>
{
static int const value = 5;
BOOST_STATIC_CONSTANT(int, value = 5);
typedef arg<6> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -27,7 +27,7 @@ template<
>
struct resolve_bind_arg< arg<N>,U1,U2,U3,U4,U5 >
{
typedef typename apply5< arg<N>,U1,U2,U3,U4,U5 >::type type;
typedef typename apply5<mpl::arg< N>,U1,U2,U3,U4,U5 >::type type;
};
template<
@@ -46,7 +46,7 @@ template<
>
struct resolve_bind_arg< arg<N>,U1,U2,U3,U4,U5 >
{
typedef typename apply5< arg<N>,U1,U2,U3,U4,U5 >::type type;
typedef typename apply5<mpl::arg< N>,U1,U2,U3,U4,U5 >::type type;
};
template<
@@ -86,7 +86,7 @@ struct bind0
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -126,7 +126,7 @@ struct bind1
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -171,7 +171,7 @@ struct bind2
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -221,7 +221,7 @@ struct bind3
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -276,7 +276,7 @@ struct bind4
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -337,7 +337,7 @@ struct bind5
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -12,7 +12,7 @@ struct lambda_helper1
{
struct rebind
{
static int const arity = 1;
BOOST_STATIC_CONSTANT(int, arity = 1);
typedef T1 arg1;
template< typename U1 > struct apply
@@ -30,7 +30,7 @@ struct lambda_helper2
{
struct rebind
{
static int const arity = 2;
BOOST_STATIC_CONSTANT(int, arity = 2);
typedef T1 arg1;
typedef T2 arg2;
@@ -49,7 +49,7 @@ struct lambda_helper3
{
struct rebind
{
static int const arity = 3;
BOOST_STATIC_CONSTANT(int, arity = 3);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -69,7 +69,7 @@ struct lambda_helper4
{
struct rebind
{
static int const arity = 4;
BOOST_STATIC_CONSTANT(int, arity = 4);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -97,7 +97,7 @@ struct lambda_helper5
{
struct rebind
{
static int const arity = 5;
BOOST_STATIC_CONSTANT(int, arity = 5);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
+36 -12
View File
@@ -6,7 +6,8 @@ namespace mpl {
template<> struct arg<-1>
{
static int const value = -1;
BOOST_STATIC_CONSTANT(int, value = -1);
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -15,15 +16,19 @@ template<> struct arg<-1>
struct apply
{
typedef U1 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<1>
{
static int const value = 1;
BOOST_STATIC_CONSTANT(int, value = 1);
typedef arg<2> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -32,15 +37,19 @@ template<> struct arg<1>
struct apply
{
typedef U1 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<2>
{
static int const value = 2;
BOOST_STATIC_CONSTANT(int, value = 2);
typedef arg<3> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -49,15 +58,19 @@ template<> struct arg<2>
struct apply
{
typedef U2 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<3>
{
static int const value = 3;
BOOST_STATIC_CONSTANT(int, value = 3);
typedef arg<4> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -66,15 +79,19 @@ template<> struct arg<3>
struct apply
{
typedef U3 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<4>
{
static int const value = 4;
BOOST_STATIC_CONSTANT(int, value = 4);
typedef arg<5> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -83,15 +100,19 @@ template<> struct arg<4>
struct apply
{
typedef U4 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<5>
{
static int const value = 5;
BOOST_STATIC_CONSTANT(int, value = 5);
typedef arg<6> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -100,7 +121,10 @@ template<> struct arg<5>
struct apply
{
typedef U5 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
@@ -33,7 +33,7 @@ template<
>
struct resolve_bind_arg< arg<N>,U1,U2,U3,U4,U5 >
{
typedef typename arg<N>::template apply< U1,U2,U3,U4,U5 >::type type;
typedef typename mpl::arg<N>::template apply< U1,U2,U3,U4,U5 >::type type;
};
template<
@@ -52,7 +52,7 @@ template<
>
struct resolve_bind_arg< arg<N>,U1,U2,U3,U4,U5 >
{
typedef typename arg<N>::template apply< U1,U2,U3,U4,U5 >::type type;
typedef typename mpl::arg<N>::template apply< U1,U2,U3,U4,U5 >::type type;
};
template<
@@ -108,7 +108,7 @@ struct bind0
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -156,7 +156,7 @@ struct bind1
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -209,7 +209,7 @@ struct bind2
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -267,7 +267,7 @@ struct bind3
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -330,7 +330,7 @@ struct bind4
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -399,7 +399,7 @@ struct bind5
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -12,7 +12,7 @@ struct lambda_helper1
{
struct rebind
{
static int const arity = 1;
BOOST_STATIC_CONSTANT(int, arity = 1);
typedef T1 arg1;
template< typename U1 > struct apply
@@ -30,7 +30,7 @@ struct lambda_helper2
{
struct rebind
{
static int const arity = 2;
BOOST_STATIC_CONSTANT(int, arity = 2);
typedef T1 arg1;
typedef T2 arg2;
@@ -49,7 +49,7 @@ struct lambda_helper3
{
struct rebind
{
static int const arity = 3;
BOOST_STATIC_CONSTANT(int, arity = 3);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -69,7 +69,7 @@ struct lambda_helper4
{
struct rebind
{
static int const arity = 4;
BOOST_STATIC_CONSTANT(int, arity = 4);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -97,7 +97,7 @@ struct lambda_helper5
{
struct rebind
{
static int const arity = 5;
BOOST_STATIC_CONSTANT(int, arity = 5);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -6,9 +6,8 @@ namespace mpl {
template<> struct arg<-1>
{
enum { value = -1 };
typedef void_ tag;
BOOST_STATIC_CONSTANT(int, value = -1);
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -17,16 +16,19 @@ template<> struct arg<-1>
struct apply
{
typedef U1 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<1>
{
enum { value = 1 };
BOOST_STATIC_CONSTANT(int, value = 1);
typedef arg<2> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -35,16 +37,19 @@ template<> struct arg<1>
struct apply
{
typedef U1 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<2>
{
enum { value = 2 };
BOOST_STATIC_CONSTANT(int, value = 2);
typedef arg<3> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -53,16 +58,19 @@ template<> struct arg<2>
struct apply
{
typedef U2 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<3>
{
enum { value = 3 };
BOOST_STATIC_CONSTANT(int, value = 3);
typedef arg<4> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -71,16 +79,19 @@ template<> struct arg<3>
struct apply
{
typedef U3 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<4>
{
enum { value = 4 };
BOOST_STATIC_CONSTANT(int, value = 4);
typedef arg<5> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -89,16 +100,19 @@ template<> struct arg<4>
struct apply
{
typedef U4 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<5>
{
enum { value = 5 };
BOOST_STATIC_CONSTANT(int, value = 5);
typedef arg<6> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -107,7 +121,10 @@ template<> struct arg<5>
struct apply
{
typedef U5 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
@@ -64,10 +64,9 @@ template< typename F, typename T > aux::yes_tag is_bind_helper(bind2nd< F,T >*);
template< typename T > struct is_bind_template
{
enum { value =
sizeof(aux::is_bind_helper(static_cast<T*>(0))) ==
sizeof(aux::yes_tag)
};
BOOST_STATIC_CONSTANT(bool, value = sizeof(aux::is_bind_helper(static_cast<T*>(0)))
== sizeof(aux::yes_tag)
);
};
} // namespace aux
@@ -90,10 +90,9 @@ template< typename F, typename T > aux::yes_tag is_bind_helper(bind2nd< F,T >*);
template< typename T > struct is_bind_template
{
enum { value =
sizeof(aux::is_bind_helper(static_cast<T*>(0))) ==
sizeof(aux::yes_tag)
};
BOOST_STATIC_CONSTANT(bool, value = sizeof(aux::is_bind_helper(static_cast<T*>(0)))
== sizeof(aux::yes_tag)
);
};
} // namespace aux
@@ -113,7 +112,7 @@ struct bind0
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -147,7 +146,7 @@ struct bind1
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -186,7 +185,7 @@ struct bind2
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -230,7 +229,7 @@ struct bind3
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -279,7 +278,7 @@ struct bind4
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -334,7 +333,7 @@ struct bind5
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -12,7 +12,7 @@ struct lambda_helper1
{
struct rebind
{
enum { arity = 1 };
BOOST_STATIC_CONSTANT(int, arity = 1);
typedef T1 arg1;
template< typename U1 > struct apply
@@ -30,7 +30,7 @@ struct lambda_helper2
{
struct rebind
{
enum { arity = 2 };
BOOST_STATIC_CONSTANT(int, arity = 2);
typedef T1 arg1;
typedef T2 arg2;
@@ -49,7 +49,7 @@ struct lambda_helper3
{
struct rebind
{
enum { arity = 3 };
BOOST_STATIC_CONSTANT(int, arity = 3);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -69,7 +69,7 @@ struct lambda_helper4
{
struct rebind
{
enum { arity = 4 };
BOOST_STATIC_CONSTANT(int, arity = 4);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -97,7 +97,7 @@ struct lambda_helper5
{
struct rebind
{
enum { arity = 5 };
BOOST_STATIC_CONSTANT(int, arity = 5);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -222,13 +222,13 @@ namespace aux {
template< typename T >
struct is_list_arg
{
enum { value = true };
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_list_arg<void_>
{
enum { value = false };
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -237,13 +237,7 @@ template<
>
struct list_count_args
{
enum { value =
is_list_arg<T1>::value + is_list_arg<T2>::value
+ is_list_arg<T3>::value + is_list_arg<T4>::value
+ is_list_arg<T5>::value + is_list_arg<T6>::value
+ is_list_arg<T7>::value + is_list_arg<T8>::value
+ is_list_arg<T9>::value + is_list_arg<T10>::value
};
BOOST_STATIC_CONSTANT(int, value = is_list_arg<T1>::value + is_list_arg<T2>::value + is_list_arg<T3>::value + is_list_arg<T4>::value + is_list_arg<T5>::value + is_list_arg<T6>::value + is_list_arg<T7>::value + is_list_arg<T8>::value + is_list_arg<T9>::value + is_list_arg<T10>::value);
};
template<
@@ -233,13 +233,13 @@ namespace aux {
template< long T >
struct is_list_c_arg
{
enum { value = true };
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_list_c_arg<LONG_MAX>
{
enum { value = false };
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -248,13 +248,7 @@ template<
>
struct list_c_count_args
{
enum { value =
is_list_c_arg<T1>::value + is_list_c_arg<T2>::value
+ is_list_c_arg<T3>::value + is_list_c_arg<T4>::value
+ is_list_c_arg<T5>::value + is_list_c_arg<T6>::value
+ is_list_c_arg<T7>::value + is_list_c_arg<T8>::value
+ is_list_c_arg<T9>::value + is_list_c_arg<T10>::value
};
BOOST_STATIC_CONSTANT(int, value = is_list_c_arg<T1>::value + is_list_c_arg<T2>::value + is_list_c_arg<T3>::value + is_list_c_arg<T4>::value + is_list_c_arg<T5>::value + is_list_c_arg<T6>::value + is_list_c_arg<T7>::value + is_list_c_arg<T8>::value + is_list_c_arg<T9>::value + is_list_c_arg<T10>::value);
};
template<
@@ -222,13 +222,13 @@ namespace aux {
template< typename T >
struct is_vector_arg
{
enum { value = true };
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_vector_arg<void_>
{
enum { value = false };
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -237,13 +237,7 @@ template<
>
struct vector_count_args
{
enum { value =
is_vector_arg<T1>::value + is_vector_arg<T2>::value
+ is_vector_arg<T3>::value + is_vector_arg<T4>::value
+ is_vector_arg<T5>::value + is_vector_arg<T6>::value
+ is_vector_arg<T7>::value + is_vector_arg<T8>::value
+ is_vector_arg<T9>::value + is_vector_arg<T10>::value
};
BOOST_STATIC_CONSTANT(int, value = is_vector_arg<T1>::value + is_vector_arg<T2>::value + is_vector_arg<T3>::value + is_vector_arg<T4>::value + is_vector_arg<T5>::value + is_vector_arg<T6>::value + is_vector_arg<T7>::value + is_vector_arg<T8>::value + is_vector_arg<T9>::value + is_vector_arg<T10>::value);
};
template<
@@ -233,13 +233,13 @@ namespace aux {
template< long T >
struct is_vector_c_arg
{
enum { value = true };
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_vector_c_arg<LONG_MAX>
{
enum { value = false };
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -248,13 +248,7 @@ template<
>
struct vector_c_count_args
{
enum { value =
is_vector_c_arg<T1>::value + is_vector_c_arg<T2>::value
+ is_vector_c_arg<T3>::value + is_vector_c_arg<T4>::value
+ is_vector_c_arg<T5>::value + is_vector_c_arg<T6>::value
+ is_vector_c_arg<T7>::value + is_vector_c_arg<T8>::value
+ is_vector_c_arg<T9>::value + is_vector_c_arg<T10>::value
};
BOOST_STATIC_CONSTANT(int, value = is_vector_c_arg<T1>::value + is_vector_c_arg<T2>::value + is_vector_c_arg<T3>::value + is_vector_c_arg<T4>::value + is_vector_c_arg<T5>::value + is_vector_c_arg<T6>::value + is_vector_c_arg<T7>::value + is_vector_c_arg<T8>::value + is_vector_c_arg<T9>::value + is_vector_c_arg<T10>::value);
};
template<
@@ -263,13 +263,13 @@ namespace aux {
template< typename T >
struct is_apply_arg
{
enum { value = true };
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_apply_arg<void_>
{
enum { value = false };
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -277,11 +277,7 @@ template<
>
struct apply_count_args
{
enum { value =
is_apply_arg<T1>::value + is_apply_arg<T2>::value
+ is_apply_arg<T3>::value + is_apply_arg<T4>::value
+ is_apply_arg<T5>::value
};
BOOST_STATIC_CONSTANT(int, value = is_apply_arg<T1>::value + is_apply_arg<T2>::value + is_apply_arg<T3>::value + is_apply_arg<T4>::value + is_apply_arg<T5>::value);
};
} // namespace aux
@@ -6,9 +6,8 @@ namespace mpl {
template<> struct arg<-1>
{
enum { value = -1 };
typedef void_ tag;
BOOST_STATIC_CONSTANT(int, value = -1);
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -17,16 +16,19 @@ template<> struct arg<-1>
struct apply
{
typedef U1 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<1>
{
enum { value = 1 };
BOOST_STATIC_CONSTANT(int, value = 1);
typedef arg<2> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -35,16 +37,19 @@ template<> struct arg<1>
struct apply
{
typedef U1 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<2>
{
enum { value = 2 };
BOOST_STATIC_CONSTANT(int, value = 2);
typedef arg<3> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -53,16 +58,19 @@ template<> struct arg<2>
struct apply
{
typedef U2 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<3>
{
enum { value = 3 };
BOOST_STATIC_CONSTANT(int, value = 3);
typedef arg<4> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -71,16 +79,19 @@ template<> struct arg<3>
struct apply
{
typedef U3 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<4>
{
enum { value = 4 };
BOOST_STATIC_CONSTANT(int, value = 4);
typedef arg<5> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -89,16 +100,19 @@ template<> struct arg<4>
struct apply
{
typedef U4 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<5>
{
enum { value = 5 };
BOOST_STATIC_CONSTANT(int, value = 5);
typedef arg<6> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -107,7 +121,10 @@ template<> struct arg<5>
struct apply
{
typedef U5 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
@@ -64,10 +64,9 @@ template< typename F, typename T > aux::yes_tag is_bind_helper(bind2nd< F,T >*);
template< typename T > struct is_bind_template
{
enum { value =
sizeof(aux::is_bind_helper(static_cast<T*>(0))) ==
sizeof(aux::yes_tag)
};
BOOST_STATIC_CONSTANT(bool, value = sizeof(aux::is_bind_helper(static_cast<T*>(0)))
== sizeof(aux::yes_tag)
);
};
} // namespace aux
@@ -90,10 +90,9 @@ template< typename F, typename T > aux::yes_tag is_bind_helper(bind2nd< F,T >*);
template< typename T > struct is_bind_template
{
enum { value =
sizeof(aux::is_bind_helper(static_cast<T*>(0))) ==
sizeof(aux::yes_tag)
};
BOOST_STATIC_CONSTANT(bool, value = sizeof(aux::is_bind_helper(static_cast<T*>(0)))
== sizeof(aux::yes_tag)
);
};
} // namespace aux
@@ -113,7 +112,7 @@ struct bind0
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -147,7 +146,7 @@ struct bind1
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -186,7 +185,7 @@ struct bind2
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -230,7 +229,7 @@ struct bind3
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -279,7 +278,7 @@ struct bind4
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -334,7 +333,7 @@ struct bind5
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -12,7 +12,7 @@ struct lambda_helper1
{
struct rebind
{
enum { arity = 1 };
BOOST_STATIC_CONSTANT(int, arity = 1);
typedef T1 arg1;
template< typename U1 > struct apply
@@ -30,7 +30,7 @@ struct lambda_helper2
{
struct rebind
{
enum { arity = 2 };
BOOST_STATIC_CONSTANT(int, arity = 2);
typedef T1 arg1;
typedef T2 arg2;
@@ -49,7 +49,7 @@ struct lambda_helper3
{
struct rebind
{
enum { arity = 3 };
BOOST_STATIC_CONSTANT(int, arity = 3);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -69,7 +69,7 @@ struct lambda_helper4
{
struct rebind
{
enum { arity = 4 };
BOOST_STATIC_CONSTANT(int, arity = 4);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -97,7 +97,7 @@ struct lambda_helper5
{
struct rebind
{
enum { arity = 5 };
BOOST_STATIC_CONSTANT(int, arity = 5);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -222,13 +222,13 @@ namespace aux {
template< typename T >
struct is_list_arg
{
enum { value = true };
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_list_arg<void_>
{
enum { value = false };
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -237,13 +237,7 @@ template<
>
struct list_count_args
{
enum { value =
is_list_arg<T1>::value + is_list_arg<T2>::value
+ is_list_arg<T3>::value + is_list_arg<T4>::value
+ is_list_arg<T5>::value + is_list_arg<T6>::value
+ is_list_arg<T7>::value + is_list_arg<T8>::value
+ is_list_arg<T9>::value + is_list_arg<T10>::value
};
BOOST_STATIC_CONSTANT(int, value = is_list_arg<T1>::value + is_list_arg<T2>::value + is_list_arg<T3>::value + is_list_arg<T4>::value + is_list_arg<T5>::value + is_list_arg<T6>::value + is_list_arg<T7>::value + is_list_arg<T8>::value + is_list_arg<T9>::value + is_list_arg<T10>::value);
};
template<
@@ -233,13 +233,13 @@ namespace aux {
template< long T >
struct is_list_c_arg
{
enum { value = true };
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_list_c_arg<LONG_MAX>
{
enum { value = false };
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -248,13 +248,7 @@ template<
>
struct list_c_count_args
{
enum { value =
is_list_c_arg<T1>::value + is_list_c_arg<T2>::value
+ is_list_c_arg<T3>::value + is_list_c_arg<T4>::value
+ is_list_c_arg<T5>::value + is_list_c_arg<T6>::value
+ is_list_c_arg<T7>::value + is_list_c_arg<T8>::value
+ is_list_c_arg<T9>::value + is_list_c_arg<T10>::value
};
BOOST_STATIC_CONSTANT(int, value = is_list_c_arg<T1>::value + is_list_c_arg<T2>::value + is_list_c_arg<T3>::value + is_list_c_arg<T4>::value + is_list_c_arg<T5>::value + is_list_c_arg<T6>::value + is_list_c_arg<T7>::value + is_list_c_arg<T8>::value + is_list_c_arg<T9>::value + is_list_c_arg<T10>::value);
};
template<
@@ -222,13 +222,13 @@ namespace aux {
template< typename T >
struct is_vector_arg
{
enum { value = true };
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_vector_arg<void_>
{
enum { value = false };
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -237,13 +237,7 @@ template<
>
struct vector_count_args
{
enum { value =
is_vector_arg<T1>::value + is_vector_arg<T2>::value
+ is_vector_arg<T3>::value + is_vector_arg<T4>::value
+ is_vector_arg<T5>::value + is_vector_arg<T6>::value
+ is_vector_arg<T7>::value + is_vector_arg<T8>::value
+ is_vector_arg<T9>::value + is_vector_arg<T10>::value
};
BOOST_STATIC_CONSTANT(int, value = is_vector_arg<T1>::value + is_vector_arg<T2>::value + is_vector_arg<T3>::value + is_vector_arg<T4>::value + is_vector_arg<T5>::value + is_vector_arg<T6>::value + is_vector_arg<T7>::value + is_vector_arg<T8>::value + is_vector_arg<T9>::value + is_vector_arg<T10>::value);
};
template<
@@ -233,13 +233,13 @@ namespace aux {
template< long T >
struct is_vector_c_arg
{
enum { value = true };
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_vector_c_arg<LONG_MAX>
{
enum { value = false };
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -248,13 +248,7 @@ template<
>
struct vector_c_count_args
{
enum { value =
is_vector_c_arg<T1>::value + is_vector_c_arg<T2>::value
+ is_vector_c_arg<T3>::value + is_vector_c_arg<T4>::value
+ is_vector_c_arg<T5>::value + is_vector_c_arg<T6>::value
+ is_vector_c_arg<T7>::value + is_vector_c_arg<T8>::value
+ is_vector_c_arg<T9>::value + is_vector_c_arg<T10>::value
};
BOOST_STATIC_CONSTANT(int, value = is_vector_c_arg<T1>::value + is_vector_c_arg<T2>::value + is_vector_c_arg<T3>::value + is_vector_c_arg<T4>::value + is_vector_c_arg<T5>::value + is_vector_c_arg<T6>::value + is_vector_c_arg<T7>::value + is_vector_c_arg<T8>::value + is_vector_c_arg<T9>::value + is_vector_c_arg<T10>::value);
};
template<
@@ -6,7 +6,8 @@ namespace mpl {
template<> struct arg<-1>
{
static int const value = -1;
BOOST_STATIC_CONSTANT(int, value = -1);
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -15,15 +16,19 @@ template<> struct arg<-1>
struct apply
{
typedef U1 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<1>
{
static int const value = 1;
BOOST_STATIC_CONSTANT(int, value = 1);
typedef arg<2> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -32,15 +37,19 @@ template<> struct arg<1>
struct apply
{
typedef U1 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<2>
{
static int const value = 2;
BOOST_STATIC_CONSTANT(int, value = 2);
typedef arg<3> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -49,15 +58,19 @@ template<> struct arg<2>
struct apply
{
typedef U2 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<3>
{
static int const value = 3;
BOOST_STATIC_CONSTANT(int, value = 3);
typedef arg<4> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -66,15 +79,19 @@ template<> struct arg<3>
struct apply
{
typedef U3 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<4>
{
static int const value = 4;
BOOST_STATIC_CONSTANT(int, value = 4);
typedef arg<5> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -83,15 +100,19 @@ template<> struct arg<4>
struct apply
{
typedef U4 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<5>
{
static int const value = 5;
BOOST_STATIC_CONSTANT(int, value = 5);
typedef arg<6> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -100,7 +121,10 @@ template<> struct arg<5>
struct apply
{
typedef U5 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
@@ -33,7 +33,7 @@ template<
>
struct resolve_bind_arg< arg<N>,U1,U2,U3,U4,U5 >
{
typedef typename apply5< arg<N>,U1,U2,U3,U4,U5 >::type type;
typedef typename apply5<mpl::arg< N>,U1,U2,U3,U4,U5 >::type type;
};
template<
@@ -52,7 +52,7 @@ template<
>
struct resolve_bind_arg< arg<N>,U1,U2,U3,U4,U5 >
{
typedef typename apply5< arg<N>,U1,U2,U3,U4,U5 >::type type;
typedef typename apply5<mpl::arg< N>,U1,U2,U3,U4,U5 >::type type;
};
template<
@@ -108,7 +108,7 @@ struct bind0
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -156,7 +156,7 @@ struct bind1
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -209,7 +209,7 @@ struct bind2
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -267,7 +267,7 @@ struct bind3
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -330,7 +330,7 @@ struct bind4
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -399,7 +399,7 @@ struct bind5
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -12,7 +12,7 @@ struct lambda_helper1
{
struct rebind
{
static int const arity = 1;
BOOST_STATIC_CONSTANT(int, arity = 1);
typedef T1 arg1;
template< typename U1 > struct apply
@@ -30,7 +30,7 @@ struct lambda_helper2
{
struct rebind
{
static int const arity = 2;
BOOST_STATIC_CONSTANT(int, arity = 2);
typedef T1 arg1;
typedef T2 arg2;
@@ -49,7 +49,7 @@ struct lambda_helper3
{
struct rebind
{
static int const arity = 3;
BOOST_STATIC_CONSTANT(int, arity = 3);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -69,7 +69,7 @@ struct lambda_helper4
{
struct rebind
{
static int const arity = 4;
BOOST_STATIC_CONSTANT(int, arity = 4);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -97,7 +97,7 @@ struct lambda_helper5
{
struct rebind
{
static int const arity = 5;
BOOST_STATIC_CONSTANT(int, arity = 5);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -263,13 +263,13 @@ namespace aux {
template< typename T >
struct is_apply_arg
{
static bool const value = true;
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_apply_arg<void_>
{
static bool const value = false;
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -277,11 +277,7 @@ template<
>
struct apply_count_args
{
static int const value =
is_apply_arg<T1>::value + is_apply_arg<T2>::value
+ is_apply_arg<T3>::value + is_apply_arg<T4>::value
+ is_apply_arg<T5>::value
;
BOOST_STATIC_CONSTANT(int, value = is_apply_arg<T1>::value + is_apply_arg<T2>::value + is_apply_arg<T3>::value + is_apply_arg<T4>::value + is_apply_arg<T5>::value);
};
} // namespace aux
@@ -6,9 +6,8 @@ namespace mpl {
template<> struct arg<-1>
{
static int const value = -1;
typedef void_ tag;
BOOST_STATIC_CONSTANT(int, value = -1);
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -17,16 +16,19 @@ template<> struct arg<-1>
struct apply
{
typedef U1 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<1>
{
static int const value = 1;
BOOST_STATIC_CONSTANT(int, value = 1);
typedef arg<2> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -35,16 +37,19 @@ template<> struct arg<1>
struct apply
{
typedef U1 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<2>
{
static int const value = 2;
BOOST_STATIC_CONSTANT(int, value = 2);
typedef arg<3> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -53,16 +58,19 @@ template<> struct arg<2>
struct apply
{
typedef U2 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<3>
{
static int const value = 3;
BOOST_STATIC_CONSTANT(int, value = 3);
typedef arg<4> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -71,16 +79,19 @@ template<> struct arg<3>
struct apply
{
typedef U3 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<4>
{
static int const value = 4;
BOOST_STATIC_CONSTANT(int, value = 4);
typedef arg<5> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -89,16 +100,19 @@ template<> struct arg<4>
struct apply
{
typedef U4 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<5>
{
static int const value = 5;
BOOST_STATIC_CONSTANT(int, value = 5);
typedef arg<6> next;
typedef void_ tag;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -107,7 +121,10 @@ template<> struct arg<5>
struct apply
{
typedef U5 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
@@ -76,10 +76,9 @@ template< typename F, typename T > aux::yes_tag is_bind_helper(bind2nd< F,T >*);
template< typename T > struct is_bind_template
{
static bool const value =
sizeof(aux::is_bind_helper(static_cast<T*>(0))) ==
sizeof(aux::yes_tag)
;
BOOST_STATIC_CONSTANT(bool, value = sizeof(aux::is_bind_helper(static_cast<T*>(0)))
== sizeof(aux::yes_tag)
);
};
} // namespace aux
@@ -402,13 +401,13 @@ namespace aux {
template< typename T >
struct is_bind_arg
{
static bool const value = true;
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_bind_arg<void_>
{
static bool const value = false;
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -416,11 +415,7 @@ template<
>
struct bind_count_args
{
static int const value =
is_bind_arg<T1>::value + is_bind_arg<T2>::value
+ is_bind_arg<T3>::value + is_bind_arg<T4>::value
+ is_bind_arg<T5>::value
;
BOOST_STATIC_CONSTANT(int, value = is_bind_arg<T1>::value + is_bind_arg<T2>::value + is_bind_arg<T3>::value + is_bind_arg<T4>::value + is_bind_arg<T5>::value);
};
}
@@ -102,10 +102,9 @@ template< typename F, typename T > aux::yes_tag is_bind_helper(bind2nd< F,T >*);
template< typename T > struct is_bind_template
{
static bool const value =
sizeof(aux::is_bind_helper(static_cast<T*>(0))) ==
sizeof(aux::yes_tag)
;
BOOST_STATIC_CONSTANT(bool, value = sizeof(aux::is_bind_helper(static_cast<T*>(0)))
== sizeof(aux::yes_tag)
);
};
} // namespace aux
@@ -130,7 +129,7 @@ struct bind0
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -181,7 +180,7 @@ struct bind1
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -237,7 +236,7 @@ struct bind2
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -298,7 +297,7 @@ struct bind3
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -364,7 +363,7 @@ struct bind4
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -436,7 +435,7 @@ struct bind5
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -506,13 +505,13 @@ namespace aux {
template< typename T >
struct is_bind_arg
{
static bool const value = true;
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_bind_arg<void_>
{
static bool const value = false;
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -520,11 +519,7 @@ template<
>
struct bind_count_args
{
static int const value =
is_bind_arg<T1>::value + is_bind_arg<T2>::value
+ is_bind_arg<T3>::value + is_bind_arg<T4>::value
+ is_bind_arg<T5>::value
;
BOOST_STATIC_CONSTANT(int, value = is_bind_arg<T1>::value + is_bind_arg<T2>::value + is_bind_arg<T3>::value + is_bind_arg<T4>::value + is_bind_arg<T5>::value);
};
}
@@ -12,7 +12,7 @@ struct lambda_helper1
{
struct rebind
{
static int const arity = 1;
BOOST_STATIC_CONSTANT(int, arity = 1);
typedef T1 arg1;
template< typename U1 > struct apply
@@ -30,7 +30,7 @@ struct lambda_helper2
{
struct rebind
{
static int const arity = 2;
BOOST_STATIC_CONSTANT(int, arity = 2);
typedef T1 arg1;
typedef T2 arg2;
@@ -49,7 +49,7 @@ struct lambda_helper3
{
struct rebind
{
static int const arity = 3;
BOOST_STATIC_CONSTANT(int, arity = 3);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -69,7 +69,7 @@ struct lambda_helper4
{
struct rebind
{
static int const arity = 4;
BOOST_STATIC_CONSTANT(int, arity = 4);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -97,7 +97,7 @@ struct lambda_helper5
{
struct rebind
{
static int const arity = 5;
BOOST_STATIC_CONSTANT(int, arity = 5);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -222,13 +222,13 @@ namespace aux {
template< typename T >
struct is_list_arg
{
static bool const value = true;
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_list_arg<void_>
{
static bool const value = false;
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -237,13 +237,7 @@ template<
>
struct list_count_args
{
static int const value =
is_list_arg<T1>::value + is_list_arg<T2>::value
+ is_list_arg<T3>::value + is_list_arg<T4>::value
+ is_list_arg<T5>::value + is_list_arg<T6>::value
+ is_list_arg<T7>::value + is_list_arg<T8>::value
+ is_list_arg<T9>::value + is_list_arg<T10>::value
;
BOOST_STATIC_CONSTANT(int, value = is_list_arg<T1>::value + is_list_arg<T2>::value + is_list_arg<T3>::value + is_list_arg<T4>::value + is_list_arg<T5>::value + is_list_arg<T6>::value + is_list_arg<T7>::value + is_list_arg<T8>::value + is_list_arg<T9>::value + is_list_arg<T10>::value);
};
template<
@@ -233,13 +233,13 @@ namespace aux {
template< long T >
struct is_list_c_arg
{
static bool const value = true;
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_list_c_arg<LONG_MAX>
{
static bool const value = false;
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -248,13 +248,7 @@ template<
>
struct list_c_count_args
{
static int const value =
is_list_c_arg<T1>::value + is_list_c_arg<T2>::value
+ is_list_c_arg<T3>::value + is_list_c_arg<T4>::value
+ is_list_c_arg<T5>::value + is_list_c_arg<T6>::value
+ is_list_c_arg<T7>::value + is_list_c_arg<T8>::value
+ is_list_c_arg<T9>::value + is_list_c_arg<T10>::value
;
BOOST_STATIC_CONSTANT(int, value = is_list_c_arg<T1>::value + is_list_c_arg<T2>::value + is_list_c_arg<T3>::value + is_list_c_arg<T4>::value + is_list_c_arg<T5>::value + is_list_c_arg<T6>::value + is_list_c_arg<T7>::value + is_list_c_arg<T8>::value + is_list_c_arg<T9>::value + is_list_c_arg<T10>::value);
};
template<
@@ -222,13 +222,13 @@ namespace aux {
template< typename T >
struct is_vector_arg
{
static bool const value = true;
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_vector_arg<void_>
{
static bool const value = false;
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -237,13 +237,7 @@ template<
>
struct vector_count_args
{
static int const value =
is_vector_arg<T1>::value + is_vector_arg<T2>::value
+ is_vector_arg<T3>::value + is_vector_arg<T4>::value
+ is_vector_arg<T5>::value + is_vector_arg<T6>::value
+ is_vector_arg<T7>::value + is_vector_arg<T8>::value
+ is_vector_arg<T9>::value + is_vector_arg<T10>::value
;
BOOST_STATIC_CONSTANT(int, value = is_vector_arg<T1>::value + is_vector_arg<T2>::value + is_vector_arg<T3>::value + is_vector_arg<T4>::value + is_vector_arg<T5>::value + is_vector_arg<T6>::value + is_vector_arg<T7>::value + is_vector_arg<T8>::value + is_vector_arg<T9>::value + is_vector_arg<T10>::value);
};
template<
@@ -233,13 +233,13 @@ namespace aux {
template< long T >
struct is_vector_c_arg
{
static bool const value = true;
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<>
struct is_vector_c_arg<LONG_MAX>
{
static bool const value = false;
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<
@@ -248,13 +248,7 @@ template<
>
struct vector_c_count_args
{
static int const value =
is_vector_c_arg<T1>::value + is_vector_c_arg<T2>::value
+ is_vector_c_arg<T3>::value + is_vector_c_arg<T4>::value
+ is_vector_c_arg<T5>::value + is_vector_c_arg<T6>::value
+ is_vector_c_arg<T7>::value + is_vector_c_arg<T8>::value
+ is_vector_c_arg<T9>::value + is_vector_c_arg<T10>::value
;
BOOST_STATIC_CONSTANT(int, value = is_vector_c_arg<T1>::value + is_vector_c_arg<T2>::value + is_vector_c_arg<T3>::value + is_vector_c_arg<T4>::value + is_vector_c_arg<T5>::value + is_vector_c_arg<T6>::value + is_vector_c_arg<T7>::value + is_vector_c_arg<T8>::value + is_vector_c_arg<T9>::value + is_vector_c_arg<T10>::value);
};
template<
@@ -6,7 +6,8 @@ namespace mpl {
template<> struct arg<-1>
{
static int const value = -1;
BOOST_STATIC_CONSTANT(int, value = -1);
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -15,15 +16,19 @@ template<> struct arg<-1>
struct apply
{
typedef U1 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<1>
{
static int const value = 1;
BOOST_STATIC_CONSTANT(int, value = 1);
typedef arg<2> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -32,15 +37,19 @@ template<> struct arg<1>
struct apply
{
typedef U1 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<2>
{
static int const value = 2;
BOOST_STATIC_CONSTANT(int, value = 2);
typedef arg<3> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -49,15 +58,19 @@ template<> struct arg<2>
struct apply
{
typedef U2 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<3>
{
static int const value = 3;
BOOST_STATIC_CONSTANT(int, value = 3);
typedef arg<4> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -66,15 +79,19 @@ template<> struct arg<3>
struct apply
{
typedef U3 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<4>
{
static int const value = 4;
BOOST_STATIC_CONSTANT(int, value = 4);
typedef arg<5> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -83,15 +100,19 @@ template<> struct arg<4>
struct apply
{
typedef U4 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
template<> struct arg<5>
{
static int const value = 5;
BOOST_STATIC_CONSTANT(int, value = 5);
typedef arg<6> next;
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
template<
typename U1 = void_, typename U2 = void_, typename U3 = void_
@@ -100,7 +121,10 @@ template<> struct arg<5>
struct apply
{
typedef U5 type;
BOOST_STATIC_ASSERT(!is_void_<type>::value);
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv);
};
};
@@ -33,7 +33,7 @@ template<
>
struct resolve_bind_arg< arg<N>,U1,U2,U3,U4,U5 >
{
typedef typename arg<N>::template apply< U1,U2,U3,U4,U5 >::type type;
typedef typename mpl::arg<N>::template apply< U1,U2,U3,U4,U5 >::type type;
};
template<
@@ -52,7 +52,7 @@ template<
>
struct resolve_bind_arg< arg<N>,U1,U2,U3,U4,U5 >
{
typedef typename arg<N>::template apply< U1,U2,U3,U4,U5 >::type type;
typedef typename mpl::arg<N>::template apply< U1,U2,U3,U4,U5 >::type type;
};
template<
@@ -108,7 +108,7 @@ struct bind0
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -156,7 +156,7 @@ struct bind1
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -209,7 +209,7 @@ struct bind2
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -267,7 +267,7 @@ struct bind3
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -330,7 +330,7 @@ struct bind4
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -399,7 +399,7 @@ struct bind5
struct apply
{
private:
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F, mpl::arg< 1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
@@ -12,7 +12,7 @@ struct lambda_helper1
{
struct rebind
{
static int const arity = 1;
BOOST_STATIC_CONSTANT(int, arity = 1);
typedef T1 arg1;
template< typename U1 > struct apply
@@ -30,7 +30,7 @@ struct lambda_helper2
{
struct rebind
{
static int const arity = 2;
BOOST_STATIC_CONSTANT(int, arity = 2);
typedef T1 arg1;
typedef T2 arg2;
@@ -49,7 +49,7 @@ struct lambda_helper3
{
struct rebind
{
static int const arity = 3;
BOOST_STATIC_CONSTANT(int, arity = 3);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -69,7 +69,7 @@ struct lambda_helper4
{
struct rebind
{
static int const arity = 4;
BOOST_STATIC_CONSTANT(int, arity = 4);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -97,7 +97,7 @@ struct lambda_helper5
{
struct rebind
{
static int const arity = 5;
BOOST_STATIC_CONSTANT(int, arity = 5);
typedef T1 arg1;
typedef T2 arg2;
typedef T3 arg3;
@@ -1,144 +0,0 @@
// preprocessed version of 'boost/mpl/list/list10.hpp' header
// see the original for copyright information
namespace boost {
namespace mpl {
template<
typename T0
>
struct list1
: list_node<
integral_c< long,1 >
, T0
, null_node
>
{
typedef list1 type;
};
template<
typename T0, typename T1
>
struct list2
: list_node<
integral_c< long,2 >
, T0
, list1<T1>
>
{
typedef list2 type;
};
template<
typename T0, typename T1, typename T2
>
struct list3
: list_node<
integral_c< long,3 >
, T0
, list2< T1,T2 >
>
{
typedef list3 type;
};
template<
typename T0, typename T1, typename T2, typename T3
>
struct list4
: list_node<
integral_c< long,4 >
, T0
, list3< T1,T2,T3 >
>
{
typedef list4 type;
};
template<
typename T0, typename T1, typename T2, typename T3, typename T4
>
struct list5
: list_node<
integral_c< long,5 >
, T0
, list4< T1,T2,T3,T4 >
>
{
typedef list5 type;
};
template<
typename T0, typename T1, typename T2, typename T3, typename T4
, typename T5
>
struct list6
: list_node<
integral_c< long,6 >
, T0
, list5< T1,T2,T3,T4,T5 >
>
{
typedef list6 type;
};
template<
typename T0, typename T1, typename T2, typename T3, typename T4
, typename T5, typename T6
>
struct list7
: list_node<
integral_c< long,7 >
, T0
, list6< T1,T2,T3,T4,T5,T6 >
>
{
typedef list7 type;
};
template<
typename T0, typename T1, typename T2, typename T3, typename T4
, typename T5, typename T6, typename T7
>
struct list8
: list_node<
integral_c< long,8 >
, T0
, list7< T1,T2,T3,T4,T5,T6,T7 >
>
{
typedef list8 type;
};
template<
typename T0, typename T1, typename T2, typename T3, typename T4
, typename T5, typename T6, typename T7, typename T8
>
struct list9
: list_node<
integral_c< long,9 >
, T0
, list8< T1,T2,T3,T4,T5,T6,T7,T8 >
>
{
typedef list9 type;
};
template<
typename T0, typename T1, typename T2, typename T3, typename T4
, typename T5, typename T6, typename T7, typename T8, typename T9
>
struct list10
: list_node<
integral_c< long,10 >
, T0
, list9< T1,T2,T3,T4,T5,T6,T7,T8,T9 >
>
{
typedef list10 type;
};
} // namespace mpl
} // namespace boost
+30 -2
View File
@@ -17,12 +17,14 @@
#ifndef BOOST_MPL_AUX_VOID_SPEC_HPP_INCLUDED
#define BOOST_MPL_AUX_VOID_SPEC_HPP_INCLUDED
#include "boost/mpl/lambda_fwd.hpp"
#include "boost/mpl/void.hpp"
#include "boost/mpl/aux_/arity.hpp"
#include "boost/mpl/aux_/template_arity_fwd.hpp"
#include "boost/mpl/aux_/preprocessor/params.hpp"
#include "boost/mpl/aux_/preprocessor/enum.hpp"
#include "boost/mpl/aux_/preprocessor/def_params_tail.hpp"
#include "boost/mpl/aux_/arity.hpp"
#include "boost/mpl/aux_/template_arity_fwd.hpp"
#include "boost/mpl/aux_/lambda_arity_param.hpp"
#include "boost/mpl/aux_/config/dtp.hpp"
#include "boost/mpl/aux_/config/ttp.hpp"
#include "boost/mpl/aux_/config/lambda.hpp"
@@ -68,6 +70,30 @@ struct name< BOOST_MPL_AUX_VOID_SPEC_PARAMS(i) > \
}; \
/**/
#if defined(BOOST_MPL_NO_FULL_LAMBDA_SUPPORT)
# define BOOST_MPL_AUX_VOID_SPEC_LAMBDA(i, name) \
template<> \
struct lambda< \
name< BOOST_MPL_AUX_VOID_SPEC_PARAMS(i) > \
, true \
> \
{ \
typedef name< BOOST_MPL_AUX_VOID_SPEC_PARAMS(i) > type; \
}; \
/**/
#else
# define BOOST_MPL_AUX_VOID_SPEC_LAMBDA(i, name) \
template<> \
struct lambda< \
name< BOOST_MPL_AUX_VOID_SPEC_PARAMS(i) > \
BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(-1) \
> \
{ \
typedef name< BOOST_MPL_AUX_VOID_SPEC_PARAMS(i) > type; \
}; \
/**/
#endif
#if defined(BOOST_EXTENDED_TEMPLATE_PARAMETERS_MATCHING) || \
defined(BOOST_MPL_NO_FULL_LAMBDA_SUPPORT) && \
defined(BOOST_MPL_BROKEN_OVERLOAD_RESOLUTION)
@@ -99,12 +125,14 @@ struct template_arity< \
#define BOOST_MPL_AUX_VOID_SPEC(i, name) \
BOOST_MPL_AUX_VOID_SPEC_MAIN(i, name) \
BOOST_MPL_AUX_VOID_SPEC_LAMBDA(i, name) \
BOOST_MPL_AUX_VOID_SPEC_ARITY(i, name) \
BOOST_MPL_AUX_VOID_SPEC_TEMPLATE_ARITY(i, i, name) \
/**/
#define BOOST_MPL_AUX_VOID_SPEC_EXT(i, j, name) \
BOOST_MPL_AUX_VOID_SPEC_MAIN(i, name) \
BOOST_MPL_AUX_VOID_SPEC_LAMBDA(i, name) \
BOOST_MPL_AUX_VOID_SPEC_ARITY(i, name) \
BOOST_MPL_AUX_VOID_SPEC_TEMPLATE_ARITY(i, j, name) \
/**/
+2 -2
View File
@@ -238,7 +238,7 @@ template<
>
struct resolve_bind_arg< arg<N>,AUX_BIND_PARAMS(U) >
{
typedef typename AUX_APPLY((arg<N>, AUX_BIND_PARAMS(U)))::type type;
typedef typename AUX_APPLY((mpl::arg<N>, AUX_BIND_PARAMS(U)))::type type;
};
#if !defined(BOOST_MPL_NO_BIND_TEMPLATE)
@@ -405,7 +405,7 @@ struct BOOST_PP_CAT(bind,i)
private:
# if !defined(BOOST_MPL_NO_UNNAMED_PLACEHOLDER_SUPPORT)
typedef aux::replace_unnamed_arg< F,arg<1> > r0;
typedef aux::replace_unnamed_arg< F,mpl::arg<1> > r0;
typedef typename r0::type a0;
typedef typename r0::next_arg n1;
typedef typename aux::resolve_bind_arg<a0,AUX_BIND_PARAMS(U)>::type f_;
+1
View File
@@ -18,6 +18,7 @@
#define BOOST_MPL_LAMBDA_FWD_HPP_INCLUDED
#include "boost/mpl/aux_/lambda_arity_param.hpp"
#include "boost/mpl/aux_/config/lambda.hpp"
namespace boost {
namespace mpl {