Boost logo

Boost-Commit :

From: joel_at_[hidden]
Date: 2007-10-24 00:58:50


Author: djowel
Date: 2007-10-24 00:58:50 EDT (Wed, 24 Oct 2007)
New Revision: 40397
URL: http://svn.boost.org/trac/boost/changeset/40397

Log:
merging tobias changes
Text files modified:
   trunk/boost/fusion/support/deduce_sequence.hpp | 21 +++++++++++----------
   1 files changed, 11 insertions(+), 10 deletions(-)

Modified: trunk/boost/fusion/support/deduce_sequence.hpp
==============================================================================
--- trunk/boost/fusion/support/deduce_sequence.hpp (original)
+++ trunk/boost/fusion/support/deduce_sequence.hpp 2007-10-24 00:58:50 EDT (Wed, 24 Oct 2007)
@@ -1,7 +1,7 @@
 /*=============================================================================
     Copyright (c) 2007 Tobias Schwinger
-
- Use modification and distribution are subject to the Boost Software
+
+ Use modification and distribution are subject to 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).
 ==============================================================================*/
@@ -10,9 +10,9 @@
 #define BOOST_FUSION_SUPPORT_DEDUCE_SEQUENCE_HPP_INCLUDED
 
 #include <boost/fusion/support/deduce.hpp>
-#include <boost/fusion/container/vector/convert.hpp>
-#include <boost/fusion/mpl.hpp>
-#include <boost/mpl/transform.hpp>
+#include <boost/fusion/sequence/conversion/as_vector.hpp>
+#include <boost/fusion/sequence/view/transform_view.hpp>
+
 
 namespace boost { namespace fusion { namespace traits
 {
@@ -22,19 +22,20 @@
     {
         struct deducer
         {
- template <typename T>
- struct apply
+ template <typename Sig>
+ struct result;
+
+ template <class Self, typename T>
+ struct result< Self(T) >
                 : fusion::traits::deduce<T>
             { };
         };
     }
 
- // We cannot use fusion::transform_view here as result_of loses cv qualifiers
- // on built in types
     template <class Sequence>
     struct deduce_sequence
         : result_of::as_vector<
- typename mpl::transform<Sequence, detail::deducer>::type>
+ fusion::transform_view<Sequence, detail::deducer> >
     { };
 
 }}}


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