mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-21 16:22:45 +02:00
fix for incomplete type is not allowed when tuple is forward declared. fixed the other as_xxx files as well.
[SVN r39724]
This commit is contained in:
@ -13,6 +13,7 @@
|
|||||||
#include <boost/mpl/identity.hpp>
|
#include <boost/mpl/identity.hpp>
|
||||||
#include <boost/mpl/if.hpp>
|
#include <boost/mpl/if.hpp>
|
||||||
#include <boost/mpl/eval_if.hpp>
|
#include <boost/mpl/eval_if.hpp>
|
||||||
|
#include <boost/mpl/or.hpp>
|
||||||
#include <boost/tuple/tuple.hpp>
|
#include <boost/tuple/tuple.hpp>
|
||||||
|
|
||||||
namespace boost { namespace fusion
|
namespace boost { namespace fusion
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*=============================================================================
|
/*=============================================================================
|
||||||
Copyright (c) 2001-2006 Joel de Guzman
|
Copyright (c) 2001-2006 Joel de Guzman
|
||||||
|
|
||||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
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)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
#ifndef BOOST_PP_IS_ITERATING
|
#ifndef BOOST_PP_IS_ITERATING
|
||||||
@ -15,7 +15,7 @@
|
|||||||
#include <boost/preprocessor/cat.hpp>
|
#include <boost/preprocessor/cat.hpp>
|
||||||
#include <boost/preprocessor/inc.hpp>
|
#include <boost/preprocessor/inc.hpp>
|
||||||
#include <boost/preprocessor/dec.hpp>
|
#include <boost/preprocessor/dec.hpp>
|
||||||
#include <boost/fusion/sequence/container/map/map_fwd.hpp>
|
#include <boost/fusion/sequence/container/map/map.hpp>
|
||||||
#include <boost/fusion/iterator/value_of.hpp>
|
#include <boost/fusion/iterator/value_of.hpp>
|
||||||
#include <boost/fusion/iterator/deref.hpp>
|
#include <boost/fusion/iterator/deref.hpp>
|
||||||
#include <boost/fusion/iterator/next.hpp>
|
#include <boost/fusion/iterator/next.hpp>
|
||||||
@ -24,7 +24,7 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
{
|
{
|
||||||
template <int size>
|
template <int size>
|
||||||
struct as_map;
|
struct as_map;
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct as_map<0>
|
struct as_map<0>
|
||||||
{
|
{
|
||||||
@ -33,7 +33,7 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
{
|
{
|
||||||
typedef map<> type;
|
typedef map<> type;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename Iterator>
|
template <typename Iterator>
|
||||||
static typename apply<Iterator>::type
|
static typename apply<Iterator>::type
|
||||||
call(Iterator)
|
call(Iterator)
|
||||||
@ -84,7 +84,7 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
BOOST_PP_REPEAT(N, BOOST_FUSION_VALUE_OF_ITERATOR, _)
|
BOOST_PP_REPEAT(N, BOOST_FUSION_VALUE_OF_ITERATOR, _)
|
||||||
typedef map<BOOST_PP_ENUM_PARAMS(N, T)> type;
|
typedef map<BOOST_PP_ENUM_PARAMS(N, T)> type;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename Iterator>
|
template <typename Iterator>
|
||||||
static typename apply<Iterator>::type
|
static typename apply<Iterator>::type
|
||||||
call(Iterator const& i0)
|
call(Iterator const& i0)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*=============================================================================
|
/*=============================================================================
|
||||||
Copyright (c) 2001-2006 Joel de Guzman
|
Copyright (c) 2001-2006 Joel de Guzman
|
||||||
|
|
||||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
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)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
#ifndef BOOST_PP_IS_ITERATING
|
#ifndef BOOST_PP_IS_ITERATING
|
||||||
@ -15,7 +15,7 @@
|
|||||||
#include <boost/preprocessor/cat.hpp>
|
#include <boost/preprocessor/cat.hpp>
|
||||||
#include <boost/preprocessor/inc.hpp>
|
#include <boost/preprocessor/inc.hpp>
|
||||||
#include <boost/preprocessor/dec.hpp>
|
#include <boost/preprocessor/dec.hpp>
|
||||||
#include <boost/fusion/sequence/container/set/set_fwd.hpp>
|
#include <boost/fusion/sequence/container/set/set.hpp>
|
||||||
#include <boost/fusion/iterator/value_of.hpp>
|
#include <boost/fusion/iterator/value_of.hpp>
|
||||||
#include <boost/fusion/iterator/deref.hpp>
|
#include <boost/fusion/iterator/deref.hpp>
|
||||||
#include <boost/fusion/iterator/next.hpp>
|
#include <boost/fusion/iterator/next.hpp>
|
||||||
@ -24,7 +24,7 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
{
|
{
|
||||||
template <int size>
|
template <int size>
|
||||||
struct as_set;
|
struct as_set;
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct as_set<0>
|
struct as_set<0>
|
||||||
{
|
{
|
||||||
@ -33,7 +33,7 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
{
|
{
|
||||||
typedef set<> type;
|
typedef set<> type;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename Iterator>
|
template <typename Iterator>
|
||||||
static typename apply<Iterator>::type
|
static typename apply<Iterator>::type
|
||||||
call(Iterator)
|
call(Iterator)
|
||||||
@ -84,7 +84,7 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
BOOST_PP_REPEAT(N, BOOST_FUSION_VALUE_OF_ITERATOR, _)
|
BOOST_PP_REPEAT(N, BOOST_FUSION_VALUE_OF_ITERATOR, _)
|
||||||
typedef set<BOOST_PP_ENUM_PARAMS(N, T)> type;
|
typedef set<BOOST_PP_ENUM_PARAMS(N, T)> type;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename Iterator>
|
template <typename Iterator>
|
||||||
static typename apply<Iterator>::type
|
static typename apply<Iterator>::type
|
||||||
call(Iterator const& i0)
|
call(Iterator const& i0)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*=============================================================================
|
/*=============================================================================
|
||||||
Copyright (c) 2001-2006 Joel de Guzman
|
Copyright (c) 2001-2006 Joel de Guzman
|
||||||
|
|
||||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
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)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
#ifndef BOOST_PP_IS_ITERATING
|
#ifndef BOOST_PP_IS_ITERATING
|
||||||
@ -15,7 +15,7 @@
|
|||||||
#include <boost/preprocessor/cat.hpp>
|
#include <boost/preprocessor/cat.hpp>
|
||||||
#include <boost/preprocessor/inc.hpp>
|
#include <boost/preprocessor/inc.hpp>
|
||||||
#include <boost/preprocessor/dec.hpp>
|
#include <boost/preprocessor/dec.hpp>
|
||||||
#include <boost/fusion/sequence/container/vector/vector_fwd.hpp>
|
#include <boost/fusion/sequence/container/vector/vector.hpp>
|
||||||
#include <boost/fusion/iterator/value_of.hpp>
|
#include <boost/fusion/iterator/value_of.hpp>
|
||||||
#include <boost/fusion/iterator/deref.hpp>
|
#include <boost/fusion/iterator/deref.hpp>
|
||||||
#include <boost/fusion/iterator/next.hpp>
|
#include <boost/fusion/iterator/next.hpp>
|
||||||
@ -24,7 +24,7 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
{
|
{
|
||||||
template <int size>
|
template <int size>
|
||||||
struct as_vector;
|
struct as_vector;
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct as_vector<0>
|
struct as_vector<0>
|
||||||
{
|
{
|
||||||
@ -33,7 +33,7 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
{
|
{
|
||||||
typedef vector<> type;
|
typedef vector<> type;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename Iterator>
|
template <typename Iterator>
|
||||||
static typename apply<Iterator>::type
|
static typename apply<Iterator>::type
|
||||||
call(Iterator)
|
call(Iterator)
|
||||||
@ -84,7 +84,7 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
BOOST_PP_REPEAT(N, BOOST_FUSION_VALUE_OF_ITERATOR, _)
|
BOOST_PP_REPEAT(N, BOOST_FUSION_VALUE_OF_ITERATOR, _)
|
||||||
typedef vector<BOOST_PP_ENUM_PARAMS(N, T)> type;
|
typedef vector<BOOST_PP_ENUM_PARAMS(N, T)> type;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename Iterator>
|
template <typename Iterator>
|
||||||
static typename apply<Iterator>::type
|
static typename apply<Iterator>::type
|
||||||
call(Iterator const& i0)
|
call(Iterator const& i0)
|
||||||
|
Reference in New Issue
Block a user