Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53915 - in trunk/boost/fusion: algorithm/transformation container/generation container/vector container/vector/detail
From: joel_at_[hidden]
Date: 2009-06-14 21:54:03


Author: djowel
Date: 2009-06-14 21:54:01 EDT (Sun, 14 Jun 2009)
New Revision: 53915
URL: http://svn.boost.org/trac/boost/changeset/53915

Log:
fix trac issue #1608
Text files modified:
   trunk/boost/fusion/algorithm/transformation/clear.hpp | 4 ++--
   trunk/boost/fusion/container/generation/make_vector.hpp | 6 +++---
   trunk/boost/fusion/container/vector/detail/as_vector.hpp | 4 ++--
   trunk/boost/fusion/container/vector/detail/vector_n_chooser.hpp | 2 +-
   trunk/boost/fusion/container/vector/vector10.hpp | 3 ++-
   5 files changed, 10 insertions(+), 9 deletions(-)

Modified: trunk/boost/fusion/algorithm/transformation/clear.hpp
==============================================================================
--- trunk/boost/fusion/algorithm/transformation/clear.hpp (original)
+++ trunk/boost/fusion/algorithm/transformation/clear.hpp 2009-06-14 21:54:01 EDT (Sun, 14 Jun 2009)
@@ -16,7 +16,7 @@
         template <typename Sequence>
         struct clear
         {
- typedef vector0 type;
+ typedef vector0<> type;
         };
     }
 
@@ -24,7 +24,7 @@
     inline typename result_of::clear<Sequence const>::type
     clear(Sequence const& seq)
     {
- return vector0();
+ return vector0<>();
     }
 }}
 

Modified: trunk/boost/fusion/container/generation/make_vector.hpp
==============================================================================
--- trunk/boost/fusion/container/generation/make_vector.hpp (original)
+++ trunk/boost/fusion/container/generation/make_vector.hpp 2009-06-14 21:54:01 EDT (Sun, 14 Jun 2009)
@@ -32,14 +32,14 @@
         template <>
         struct make_vector<>
         {
- typedef vector0 type;
+ typedef vector0<> type;
         };
     }
 
- inline vector0
+ inline vector0<>
     make_vector()
     {
- return vector0();
+ return vector0<>();
     }
 
 #define BOOST_FUSION_AS_FUSION_ELEMENT(z, n, data) \

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 2009-06-14 21:54:01 EDT (Sun, 14 Jun 2009)
@@ -31,14 +31,14 @@
         template <typename Iterator>
         struct apply
         {
- typedef vector0 type;
+ typedef vector0<> type;
         };
 
         template <typename Iterator>
         static typename apply<Iterator>::type
         call(Iterator)
         {
- return vector0();
+ return vector0<>();
         }
     };
 

Modified: trunk/boost/fusion/container/vector/detail/vector_n_chooser.hpp
==============================================================================
--- trunk/boost/fusion/container/vector/detail/vector_n_chooser.hpp (original)
+++ trunk/boost/fusion/container/vector/detail/vector_n_chooser.hpp 2009-06-14 21:54:01 EDT (Sun, 14 Jun 2009)
@@ -48,7 +48,7 @@
     template <>
     struct vector_n_chooser<BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, void_ BOOST_PP_INTERCEPT)>
     {
- typedef vector0 type;
+ typedef vector0<> type;
     };
 
 #define BOOST_PP_FILENAME_1 \

Modified: trunk/boost/fusion/container/vector/vector10.hpp
==============================================================================
--- trunk/boost/fusion/container/vector/vector10.hpp (original)
+++ trunk/boost/fusion/container/vector/vector10.hpp 2009-06-14 21:54:01 EDT (Sun, 14 Jun 2009)
@@ -39,7 +39,8 @@
     struct fusion_sequence_tag;
     struct random_access_traversal_tag;
 
- struct vector0 : sequence_base<vector0>
+ template <typename Dummy = void>
+ struct vector0 : sequence_base<vector0<Dummy> >
     {
         typedef mpl::vector0<> types;
         typedef vector_tag fusion_tag;


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