Explicitly cast array::static_size to an int. Fixes #2761

[SVN r62893]
This commit is contained in:
Steven Watanabe
2010-06-13 03:06:14 +00:00
parent 378858f270
commit 7d14098b21

View File

@ -26,7 +26,7 @@ namespace boost { namespace fusion
: 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;