|
Boost-Commit : |
From: joel_at_[hidden]
Date: 2007-10-06 10:10:30
Author: djowel
Date: 2007-10-06 10:10:30 EDT (Sat, 06 Oct 2007)
New Revision: 39724
URL: http://svn.boost.org/trac/boost/changeset/39724
Log:
fix for incomplete type is not allowed when tuple is forward declared. fixed the other as_xxx files as well.
Text files modified:
trunk/boost/fusion/sequence/adapted/boost_tuple/boost_tuple_iterator.hpp | 1 +
trunk/boost/fusion/sequence/conversion/detail/as_map.hpp | 10 +++++-----
trunk/boost/fusion/sequence/conversion/detail/as_set.hpp | 10 +++++-----
trunk/boost/fusion/sequence/conversion/detail/as_vector.hpp | 10 +++++-----
4 files changed, 16 insertions(+), 15 deletions(-)
Modified: trunk/boost/fusion/sequence/adapted/boost_tuple/boost_tuple_iterator.hpp
==============================================================================
--- trunk/boost/fusion/sequence/adapted/boost_tuple/boost_tuple_iterator.hpp (original)
+++ trunk/boost/fusion/sequence/adapted/boost_tuple/boost_tuple_iterator.hpp 2007-10-06 10:10:30 EDT (Sat, 06 Oct 2007)
@@ -13,6 +13,7 @@
#include <boost/mpl/identity.hpp>
#include <boost/mpl/if.hpp>
#include <boost/mpl/eval_if.hpp>
+#include <boost/mpl/or.hpp>
#include <boost/tuple/tuple.hpp>
namespace boost { namespace fusion
Modified: trunk/boost/fusion/sequence/conversion/detail/as_map.hpp
==============================================================================
--- trunk/boost/fusion/sequence/conversion/detail/as_map.hpp (original)
+++ trunk/boost/fusion/sequence/conversion/detail/as_map.hpp 2007-10-06 10:10:30 EDT (Sat, 06 Oct 2007)
@@ -1,7 +1,7 @@
/*=============================================================================
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)
==============================================================================*/
#ifndef BOOST_PP_IS_ITERATING
@@ -15,7 +15,7 @@
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/inc.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/deref.hpp>
#include <boost/fusion/iterator/next.hpp>
@@ -24,7 +24,7 @@
{
template <int size>
struct as_map;
-
+
template <>
struct as_map<0>
{
@@ -33,7 +33,7 @@
{
typedef map<> type;
};
-
+
template <typename Iterator>
static typename apply<Iterator>::type
call(Iterator)
@@ -84,7 +84,7 @@
BOOST_PP_REPEAT(N, BOOST_FUSION_VALUE_OF_ITERATOR, _)
typedef map<BOOST_PP_ENUM_PARAMS(N, T)> type;
};
-
+
template <typename Iterator>
static typename apply<Iterator>::type
call(Iterator const& i0)
Modified: trunk/boost/fusion/sequence/conversion/detail/as_set.hpp
==============================================================================
--- trunk/boost/fusion/sequence/conversion/detail/as_set.hpp (original)
+++ trunk/boost/fusion/sequence/conversion/detail/as_set.hpp 2007-10-06 10:10:30 EDT (Sat, 06 Oct 2007)
@@ -1,7 +1,7 @@
/*=============================================================================
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)
==============================================================================*/
#ifndef BOOST_PP_IS_ITERATING
@@ -15,7 +15,7 @@
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/inc.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/deref.hpp>
#include <boost/fusion/iterator/next.hpp>
@@ -24,7 +24,7 @@
{
template <int size>
struct as_set;
-
+
template <>
struct as_set<0>
{
@@ -33,7 +33,7 @@
{
typedef set<> type;
};
-
+
template <typename Iterator>
static typename apply<Iterator>::type
call(Iterator)
@@ -84,7 +84,7 @@
BOOST_PP_REPEAT(N, BOOST_FUSION_VALUE_OF_ITERATOR, _)
typedef set<BOOST_PP_ENUM_PARAMS(N, T)> type;
};
-
+
template <typename Iterator>
static typename apply<Iterator>::type
call(Iterator const& i0)
Modified: trunk/boost/fusion/sequence/conversion/detail/as_vector.hpp
==============================================================================
--- trunk/boost/fusion/sequence/conversion/detail/as_vector.hpp (original)
+++ trunk/boost/fusion/sequence/conversion/detail/as_vector.hpp 2007-10-06 10:10:30 EDT (Sat, 06 Oct 2007)
@@ -1,7 +1,7 @@
/*=============================================================================
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)
==============================================================================*/
#ifndef BOOST_PP_IS_ITERATING
@@ -15,7 +15,7 @@
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/inc.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/deref.hpp>
#include <boost/fusion/iterator/next.hpp>
@@ -24,7 +24,7 @@
{
template <int size>
struct as_vector;
-
+
template <>
struct as_vector<0>
{
@@ -33,7 +33,7 @@
{
typedef vector<> type;
};
-
+
template <typename Iterator>
static typename apply<Iterator>::type
call(Iterator)
@@ -84,7 +84,7 @@
BOOST_PP_REPEAT(N, BOOST_FUSION_VALUE_OF_ITERATOR, _)
typedef vector<BOOST_PP_ENUM_PARAMS(N, T)> type;
};
-
+
template <typename Iterator>
static typename apply<Iterator>::type
call(Iterator const& i0)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk