added static assert when N is > size of vector

[SVN r84283]
This commit is contained in:
Joel de Guzman
2013-05-14 21:10:02 +00:00
parent e83960d3e9
commit 56d0d48eb9

View File

@ -33,6 +33,7 @@ namespace boost { namespace fusion
static type
call(Sequence& v)
{
BOOST_STATIC_ASSERT((N::value < Sequence::size::value));
return v.at_impl(N());
}
};
@ -46,6 +47,7 @@ namespace boost { namespace fusion
static type
call(Sequence const& v)
{
BOOST_STATIC_ASSERT((N::value < Sequence::size::value));
return v.at_impl(N());
}
};