mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-06 16:24:35 +02:00
lambda arg fix
[SVN r15796]
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
# include "boost/mpl/arg_fwd.hpp"
|
# include "boost/mpl/arg_fwd.hpp"
|
||||||
# include "boost/mpl/void.hpp"
|
# include "boost/mpl/void.hpp"
|
||||||
# include "boost/mpl/aux_/arity_spec.hpp"
|
# include "boost/mpl/aux_/arity_spec.hpp"
|
||||||
|
# include "boost/mpl/aux_/arg_typedef.hpp"
|
||||||
# include "boost/static_assert.hpp"
|
# include "boost/static_assert.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -95,9 +96,7 @@ template<> struct arg<i>
|
|||||||
{
|
{
|
||||||
BOOST_STATIC_CONSTANT(int, value = i);
|
BOOST_STATIC_CONSTANT(int, value = i);
|
||||||
typedef arg<BOOST_PP_INC(i)> next;
|
typedef arg<BOOST_PP_INC(i)> next;
|
||||||
#if defined(BOOST_MPL_NO_FULL_LAMBDA_SUPPORT)
|
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
|
||||||
typedef void_ tag;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
template<
|
template<
|
||||||
AUX_ARG_N_DEFAULT_PARAMS(typename U, void_)
|
AUX_ARG_N_DEFAULT_PARAMS(typename U, void_)
|
||||||
@@ -118,9 +117,7 @@ template<> struct arg<i>
|
|||||||
template<> struct arg<-1>
|
template<> struct arg<-1>
|
||||||
{
|
{
|
||||||
BOOST_STATIC_CONSTANT(int, value = -1);
|
BOOST_STATIC_CONSTANT(int, value = -1);
|
||||||
#if defined(BOOST_MPL_NO_FULL_LAMBDA_SUPPORT)
|
BOOST_MPL_AUX_ARG_TYPEDEF(void_, tag)
|
||||||
typedef void_ tag;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
template<
|
template<
|
||||||
AUX_ARG_N_DEFAULT_PARAMS(typename U, void_)
|
AUX_ARG_N_DEFAULT_PARAMS(typename U, void_)
|
||||||
|
28
include/boost/mpl/aux_/arg_typedef.hpp
Normal file
28
include/boost/mpl/aux_/arg_typedef.hpp
Normal 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
|
Reference in New Issue
Block a user