Update of /cvsroot/boost/boost/boost/fusion/iterator
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31721

Modified Files:
        iterator_facade.hpp 
Log Message:
minor tweaks

Index: iterator_facade.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/fusion/iterator/iterator_facade.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- iterator_facade.hpp 25 Sep 2006 09:06:15 -0000      1.1
+++ iterator_facade.hpp 13 Nov 2006 01:16:21 -0000      1.2
@@ -9,7 +9,9 @@
 #define FUSION_ITERATOR_FACADE_09252006_1011
 
 #include <boost/fusion/support/iterator_base.hpp>
+#include <boost/fusion/iterator/detail/advance.hpp>
 #include <boost/type_traits/is_same.hpp>
+#include <boost/mpl/assert.hpp>
 
 namespace boost { namespace fusion
 {
@@ -22,6 +24,7 @@
         typedef Derived derived_type;
         typedef Category category;
 
+        // default implementation
         template <typename I1, typename I2>
         struct equal_to // default implementation
             : is_same<
@@ -29,6 +32,18 @@
               , typename I2::derived_type
             >
         {};
+
+        // default implementation
+        template <typename Iterator, typename N>
+        struct advance :
+            mpl::if_c<
+                (N::value > 0)
+              , advance_detail::forward<Iterator, N::value>
+              , advance_detail::backward<Iterator, N::value>
+            >::type
+        {
+            BOOST_MPL_ASSERT_NOT((traits::is_random_access<Iterator>));
+        };
     };
 }}
 


-------------------------------------------------------------------------
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