remove superfluous include

[SVN r40383]
This commit is contained in:
Joel de Guzman
2007-10-23 23:29:08 +00:00
parent ea0da68ccd
commit d10270f755

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)
==============================================================================*/ ==============================================================================*/
#if !defined(FUSION_VECTOR_07072005_1244) #if !defined(FUSION_VECTOR_07072005_1244)
@ -9,7 +9,6 @@
#include <boost/fusion/container/vector/vector_fwd.hpp> #include <boost/fusion/container/vector/vector_fwd.hpp>
#include <boost/fusion/container/vector/detail/vector_n_chooser.hpp> #include <boost/fusion/container/vector/detail/vector_n_chooser.hpp>
#include <boost/fusion/container/vector/detail/as_vector.hpp>
#include <boost/fusion/sequence/intrinsic/begin.hpp> #include <boost/fusion/sequence/intrinsic/begin.hpp>
#include <boost/mpl/at.hpp> #include <boost/mpl/at.hpp>
#include <boost/mpl/bool.hpp> #include <boost/mpl/bool.hpp>
@ -24,11 +23,11 @@ namespace boost { namespace fusion
struct fusion_sequence_tag; struct fusion_sequence_tag;
template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, typename T)> template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, typename T)>
struct vector struct vector
: sequence_base<vector<BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)> > : sequence_base<vector<BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)> >
{ {
private: private:
typedef typename detail::vector_n_chooser< typedef typename detail::vector_n_chooser<
BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)>::type BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)>::type
vector_n; vector_n;
@ -37,7 +36,7 @@ namespace boost { namespace fusion
friend struct vector; friend struct vector;
public: public:
typedef typename vector_n::types types; typedef typename vector_n::types types;
typedef typename vector_n::fusion_tag fusion_tag; typedef typename vector_n::fusion_tag fusion_tag;
typedef typename vector_n::tag tag; typedef typename vector_n::tag tag;
@ -93,10 +92,10 @@ namespace boost { namespace fusion
typename mpl::at_c<types, N>::type typename mpl::at_c<types, N>::type
>::type >::type
at_impl(mpl::int_<N> index) at_impl(mpl::int_<N> index)
{ {
return vec.at_impl(index); return vec.at_impl(index);
} }
template <int N> template <int N>
typename add_reference< typename add_reference<
typename add_const< typename add_const<
@ -104,8 +103,8 @@ namespace boost { namespace fusion
>::type >::type
>::type >::type
at_impl(mpl::int_<N> index) const at_impl(mpl::int_<N> index) const
{ {
return vec.at_impl(index); return vec.at_impl(index);
} }
template <typename I> template <typename I>
@ -113,8 +112,8 @@ namespace boost { namespace fusion
typename mpl::at<types, I>::type typename mpl::at<types, I>::type
>::type >::type
at_impl(I index) at_impl(I index)
{ {
return vec.at_impl(mpl::int_<I::value>()); return vec.at_impl(mpl::int_<I::value>());
} }
template<typename I> template<typename I>
@ -124,21 +123,21 @@ namespace boost { namespace fusion
>::type >::type
>::type >::type
at_impl(I index) const at_impl(I index) const
{ {
return vec.at_impl(mpl::int_<I::value>()); return vec.at_impl(mpl::int_<I::value>());
} }
private: private:
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1400) #if BOOST_WORKAROUND(BOOST_MSVC, <= 1400)
static vector_n const& static vector_n const&
ctor_helper(vector const& rhs, mpl::true_) ctor_helper(vector const& rhs, mpl::true_)
{ {
return rhs.vec; return rhs.vec;
} }
template <typename T> template <typename T>
static T const& static T const&
ctor_helper(T const& rhs, mpl::false_) ctor_helper(T const& rhs, mpl::false_)
{ {
return rhs; return rhs;