changed the result of as_vector to return the numbered forms (i.e vectorN)

[SVN r49778]
This commit is contained in:
Joel de Guzman
2008-11-16 01:00:37 +00:00
parent 7c8f9e3b6d
commit fad40f6c9d

View File

@ -31,14 +31,14 @@ namespace boost { namespace fusion { namespace detail
template <typename Iterator> template <typename Iterator>
struct apply struct apply
{ {
typedef vector<> type; typedef vector0 type;
}; };
template <typename Iterator> template <typename Iterator>
static typename apply<Iterator>::type static typename apply<Iterator>::type
call(Iterator) call(Iterator)
{ {
return vector<>(); return vector0();
} }
}; };
@ -82,7 +82,7 @@ namespace boost { namespace fusion { namespace detail
{ {
BOOST_PP_REPEAT(N, BOOST_FUSION_NEXT_ITERATOR, _) BOOST_PP_REPEAT(N, BOOST_FUSION_NEXT_ITERATOR, _)
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 BOOST_PP_CAT(vector, N)<BOOST_PP_ENUM_PARAMS(N, T)> type;
}; };
template <typename Iterator> template <typename Iterator>