Update of /cvsroot/boost/boost/boost/fusion/sequence/view/zip_view
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25707

Modified Files:
        zip_view.hpp 
Log Message:
support for sequences weaker than Forward Sequence


Index: zip_view.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/boost/fusion/sequence/view/zip_view/zip_view.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- zip_view.hpp        6 Mar 2007 21:37:26 -0000       1.5
+++ zip_view.hpp        19 Mar 2007 18:13:24 -0000      1.6
@@ -47,10 +47,21 @@
 
         struct seq_ref_size
         {
-            template<typename Seq>
+            template<typename Seq, 
+                typename SeqClass = typename remove_reference<Seq>::type, 
+                bool HasSize = traits::is_forward<SeqClass>::value
+                >
             struct result
-                : result_of::size<typename remove_reference<Seq>::type>
+                : result_of::size<SeqClass>
             {};
+
+            static int const int_max = static_cast<int>(
+                static_cast<unsigned>(~0) >> 1);
+
+            template<typename Seq, typename SeqClass>
+            struct result<Seq, SeqClass, false>
+                : mpl::int_<int_max>
+            {}; 
         };
 
         struct poly_min


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to