Update of /cvsroot/boost/boost/boost/fusion/sequence/view/zip_view
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv7780
Modified Files:
zip_view.hpp
Log Message:
silences msvc warning when used with infinite sequences
Index: zip_view.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/fusion/sequence/view/zip_view/zip_view.hpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- zip_view.hpp 19 Jun 2007 21:30:06 -0000 1.8
+++ zip_view.hpp 13 Jul 2007 21:27:35 -0000 1.9
@@ -54,15 +54,15 @@
template<typename Seq>
struct result<seq_ref_size(Seq)>
{
- static int const int_max = static_cast<int>(
- static_cast<unsigned>(~0) >> 1);
+ static int const high_int = static_cast<int>(
+ (static_cast<unsigned>(~0) >> 1) - 1);
typedef typename remove_reference<Seq>::type SeqClass;
typedef typename mpl::eval_if<
traits::is_forward<SeqClass>,
result_of::size<SeqClass>,
- mpl::int_<int_max> >::type type;
+ mpl::int_<high_int> >::type type;
};
};
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs