Update of /cvsroot/boost/boost/boost/fusion/algorithm/query
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv19696
Modified Files:
find.hpp find_if.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: find.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/fusion/algorithm/query/find.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- find.hpp 25 Sep 2006 09:06:15 -0000 1.2
+++ find.hpp 9 Nov 2006 01:48:46 -0000 1.3
@@ -56,7 +56,7 @@
lazy_disable_if<
is_const<Sequence>
, result_of::find<Sequence, T>
- >::type
+ >::type const
find(Sequence& seq)
{
typedef typename result_of::find<Sequence, T>::filter filter;
@@ -64,7 +64,7 @@
}
template <typename T, typename Sequence>
- inline typename result_of::find<Sequence const, T>::type
+ inline typename result_of::find<Sequence const, T>::type const
find(Sequence const& seq)
{
typedef typename result_of::find<Sequence const, T>::filter filter;
Index: find_if.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/fusion/algorithm/query/find_if.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- find_if.hpp 16 Aug 2006 16:50:25 -0000 1.1
+++ find_if.hpp 9 Nov 2006 01:48:46 -0000 1.2
@@ -51,7 +51,7 @@
}
template <typename Pred, typename Sequence>
- inline typename result_of::find_if<Sequence const, Pred>::type
+ inline typename result_of::find_if<Sequence const, Pred>::type const
find_if(Sequence const& seq)
{
typedef
-------------------------------------------------------------------------
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