48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
// Copyright David Abrahams, Daniel Wallin 2003.
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// (See accompanying file LICENSE_1_0.txt or copy at
|
|
// http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
#ifndef ACTIV_BOOST_PARAMETER_AUX_PACK_ITEM_HPP
|
|
#define ACTIV_BOOST_PARAMETER_AUX_PACK_ITEM_HPP
|
|
|
|
#include <ActivBoost/parameter/aux_/void.hpp>
|
|
#include <ActivBoost/config.hpp>
|
|
#include <ActivBoost/config/workaround.hpp>
|
|
|
|
#if ACTIV_BOOST_WORKAROUND(ACTIV_BOOST_BORLANDC, ACTIV_BOOST_TESTED_AT(0x564))
|
|
#include <ActivBoost/type_traits/is_const.hpp>
|
|
#include <ActivBoost/type_traits/remove_reference.hpp>
|
|
#endif
|
|
|
|
namespace Boost { namespace parameter { namespace aux {
|
|
|
|
// A parameter spec item typelist.
|
|
template <
|
|
typename Spec
|
|
, typename Arg
|
|
, typename Tail = ::Boost::parameter::void_
|
|
>
|
|
struct item
|
|
{
|
|
typedef Spec spec;
|
|
#if ACTIV_BOOST_WORKAROUND(ACTIV_BOOST_BORLANDC, ACTIV_BOOST_TESTED_AT(0x564))
|
|
typedef ::Boost::is_const<
|
|
typename ::Boost::remove_reference<Arg>::type
|
|
> is_arg_const;
|
|
#endif
|
|
typedef Arg arg;
|
|
typedef Tail tail;
|
|
};
|
|
|
|
template <typename Spec, typename Arg, typename Tail>
|
|
struct make_item
|
|
{
|
|
typedef Boost::parameter::aux
|
|
::item<Spec,Arg,typename Tail::type> type;
|
|
};
|
|
}}} // namespace Boost::parameter::aux
|
|
|
|
#endif // include guard
|
|
|