forked from boostorg/fusion
Merge pull request #2 from alfC/patch-1
Changed static assertion that checks array size
This commit is contained in:
@ -28,7 +28,7 @@ namespace boost { namespace fusion
|
|||||||
: iterator_facade<std_array_iterator<Array, Pos>, random_access_traversal_tag>
|
: iterator_facade<std_array_iterator<Array, Pos>, random_access_traversal_tag>
|
||||||
{
|
{
|
||||||
BOOST_MPL_ASSERT_RELATION(Pos, >=, 0);
|
BOOST_MPL_ASSERT_RELATION(Pos, >=, 0);
|
||||||
BOOST_MPL_ASSERT_RELATION(Pos, <=, static_cast<int>(extension::std_array_size<Array>::value));
|
BOOST_MPL_ASSERT_RELATION(Pos, <=, std::tuple_size<Array>::value);
|
||||||
|
|
||||||
typedef mpl::int_<Pos> index;
|
typedef mpl::int_<Pos> index;
|
||||||
typedef Array array_type;
|
typedef Array array_type;
|
||||||
|
Reference in New Issue
Block a user