Update of /cvsroot/boost/boost/boost/xpressive/proto
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4348/proto

Modified Files:
        fusion.hpp 
Log Message:
use segmented_size to efficiently calculate the size of a proto expression tree

Index: fusion.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/xpressive/proto/fusion.hpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- fusion.hpp  7 Nov 2006 05:03:51 -0000       1.15
+++ fusion.hpp  9 Nov 2006 06:45:02 -0000       1.16
@@ -32,6 +32,7 @@
 
 #include <boost/fusion/support/ext_/is_segmented.hpp>
 #include <boost/fusion/sequence/intrinsic/ext_/segments.hpp>
+#include <boost/fusion/sequence/intrinsic/ext_/size_s.hpp>
 #include <boost/fusion/sequence/view/ext_/segmented_iterator.hpp>
 
 namespace boost { namespace proto { namespace detail
@@ -345,6 +346,15 @@
               : fusion::segmented_end<Sequence>
             {};
         };
+
+        template<>
+        struct size_impl<proto::proto_expr_tag>
+        {
+            template<typename Sequence>
+            struct apply
+              : fusion::segmented_size<Sequence>
+            {};
+        };
     }
 }}
 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to