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

Modified Files:
        advance.hpp next.hpp prior.hpp 
Log Message:
usability tweaks: functions that return iterators return them as *const* to 
allow chaining when the recipient function expects a reference (e.g. foo(Iter&) 
)

Index: advance.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/fusion/iterator/advance.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- advance.hpp 25 Sep 2006 09:06:15 -0000      1.3
+++ advance.hpp 9 Nov 2006 01:48:20 -0000       1.4
@@ -75,14 +75,14 @@
     }
 
     template <int N, typename Iterator>
-    inline typename result_of::advance_c<Iterator, N>::type
+    inline typename result_of::advance_c<Iterator, N>::type const
     advance_c(Iterator const& i)
     {
         return result_of::advance_c<Iterator, N>::call(i);
     }
 
     template<typename N, typename Iterator>
-    inline typename result_of::advance<Iterator, N>::type
+    inline typename result_of::advance<Iterator, N>::type const
     advance(Iterator const& i)
     {
         return result_of::advance<Iterator, N>::call(i);

Index: next.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/fusion/iterator/next.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- next.hpp    25 Sep 2006 09:06:15 -0000      1.3
+++ next.hpp    9 Nov 2006 01:48:20 -0000       1.4
@@ -54,7 +54,7 @@
     }
 
     template <typename Iterator>
-    typename result_of::next<Iterator>::type
+    typename result_of::next<Iterator>::type const
     next(Iterator const& i)
     {
         return result_of::next<Iterator>::call(i);

Index: prior.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/fusion/iterator/prior.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- prior.hpp   25 Sep 2006 09:06:15 -0000      1.3
+++ prior.hpp   9 Nov 2006 01:48:20 -0000       1.4
@@ -54,7 +54,7 @@
     }
 
     template <typename Iterator>
-    typename result_of::prior<Iterator>::type
+    typename result_of::prior<Iterator>::type const
     prior(Iterator const& i)
     {
         return result_of::prior<Iterator>::call(i);


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