Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50454 - trunk/boost/proto
From: eric_at_[hidden]
Date: 2009-01-03 20:39:14


Author: eric_niebler
Date: 2009-01-03 20:39:13 EST (Sat, 03 Jan 2009)
New Revision: 50454
URL: http://svn.boost.org/trac/boost/changeset/50454

Log:
proto::expr is a valid mpl sequence
Text files modified:
   trunk/boost/proto/fusion.hpp | 10 ++++++++++
   1 files changed, 10 insertions(+), 0 deletions(-)

Modified: trunk/boost/proto/fusion.hpp
==============================================================================
--- trunk/boost/proto/fusion.hpp (original)
+++ trunk/boost/proto/fusion.hpp 2009-01-03 20:39:13 EST (Sat, 03 Jan 2009)
@@ -15,6 +15,7 @@
 #include <boost/type_traits/remove_reference.hpp>
 #include <boost/mpl/if.hpp>
 #include <boost/mpl/long.hpp>
+#include <boost/mpl/sequence_tag_fwd.hpp>
 #if BOOST_VERSION >= 103500
 #include <boost/fusion/include/is_view.hpp>
 #include <boost/fusion/include/tag_of_fwd.hpp>
@@ -708,6 +709,15 @@
 
 }}
 
+namespace boost { namespace mpl
+{
+ template<typename Tag, typename Args, long Arity>
+ struct sequence_tag< proto::expr<Tag, Args, Arity> >
+ {
+ typedef fusion::fusion_sequence_tag type;
+ };
+}}
+
 #endif // BOOST_PROTO_BUILDING_DOCS
 
 #undef UNREF


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