Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49778 - trunk/boost/fusion/container/vector/detail
From: joel_at_[hidden]
Date: 2008-11-15 20:00:37


Author: djowel
Date: 2008-11-15 20:00:37 EST (Sat, 15 Nov 2008)
New Revision: 49778
URL: http://svn.boost.org/trac/boost/changeset/49778

Log:
changed the result of as_vector to return the numbered forms (i.e vectorN)
Text files modified:
   trunk/boost/fusion/container/vector/detail/as_vector.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/fusion/container/vector/detail/as_vector.hpp
==============================================================================
--- trunk/boost/fusion/container/vector/detail/as_vector.hpp (original)
+++ trunk/boost/fusion/container/vector/detail/as_vector.hpp 2008-11-15 20:00:37 EST (Sat, 15 Nov 2008)
@@ -31,14 +31,14 @@
         template <typename Iterator>
         struct apply
         {
- typedef vector<> type;
+ typedef vector0 type;
         };
 
         template <typename Iterator>
         static typename apply<Iterator>::type
         call(Iterator)
         {
- return vector<>();
+ return vector0();
         }
     };
 
@@ -82,7 +82,7 @@
         {
             BOOST_PP_REPEAT(N, BOOST_FUSION_NEXT_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>


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