Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62893 - trunk/boost/fusion/adapted/boost_array
From: steven_at_[hidden]
Date: 2010-06-12 23:06:15


Author: steven_watanabe
Date: 2010-06-12 23:06:14 EDT (Sat, 12 Jun 2010)
New Revision: 62893
URL: http://svn.boost.org/trac/boost/changeset/62893

Log:
Explicitly cast array::static_size to an int. Fixes #2761
Text files modified:
   trunk/boost/fusion/adapted/boost_array/array_iterator.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/fusion/adapted/boost_array/array_iterator.hpp
==============================================================================
--- trunk/boost/fusion/adapted/boost_array/array_iterator.hpp (original)
+++ trunk/boost/fusion/adapted/boost_array/array_iterator.hpp 2010-06-12 23:06:14 EDT (Sat, 12 Jun 2010)
@@ -26,7 +26,7 @@
         : iterator_facade<array_iterator<Array, Pos>, random_access_traversal_tag>
     {
         BOOST_MPL_ASSERT_RELATION(Pos, >=, 0);
- BOOST_MPL_ASSERT_RELATION(Pos, <=, Array::static_size);
+ BOOST_MPL_ASSERT_RELATION(Pos, <=, static_cast<int>(Array::static_size));
 
         typedef mpl::int_<Pos> index;
         typedef Array array_type;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk