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:
Joel de Guzman
2007-10-06 14:10:30 +00:00
parent 3de9048e8a
commit 0f11e531ac
4 changed files with 16 additions and 15 deletions

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)