Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67342 - trunk/boost/proto
From: eric_at_[hidden]
Date: 2010-12-19 12:18:36


Author: eric_niebler
Date: 2010-12-19 12:18:31 EST (Sun, 19 Dec 2010)
New Revision: 67342
URL: http://svn.boost.org/trac/boost/changeset/67342

Log:
fusion::is_sequence returns true for proto::expr, proto::basic_expr, and proto flat_views, fixes #5006
Text files modified:
   trunk/boost/proto/fusion.hpp | 20 ++++++++++++++++++++
   1 files changed, 20 insertions(+), 0 deletions(-)

Modified: trunk/boost/proto/fusion.hpp
==============================================================================
--- trunk/boost/proto/fusion.hpp (original)
+++ trunk/boost/proto/fusion.hpp 2010-12-19 12:18:31 EST (Sun, 19 Dec 2010)
@@ -249,6 +249,26 @@
 {
     namespace extension
     {
+ template<typename Tag>
+ struct is_sequence_impl;
+
+ template<>
+ struct is_sequence_impl<proto::tag::proto_flat_view>
+ {
+ template<typename Sequence>
+ struct apply
+ : mpl::true_
+ {};
+ };
+
+ template<>
+ struct is_sequence_impl<proto::tag::proto_expr>
+ {
+ template<typename Sequence>
+ struct apply
+ : mpl::true_
+ {};
+ };
 
         template<typename Tag>
         struct is_view_impl;


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