mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-23 17:17:23 +02:00
added static sanity check
[SVN r73684]
This commit is contained in:
@ -9,6 +9,7 @@
|
|||||||
#define BOOST_FUSION_SINGLE_VIEW_NEXT_IMPL_05052005_0331
|
#define BOOST_FUSION_SINGLE_VIEW_NEXT_IMPL_05052005_0331
|
||||||
|
|
||||||
#include <boost/mpl/next.hpp>
|
#include <boost/mpl/next.hpp>
|
||||||
|
#include <boost/static_assert.hpp>
|
||||||
|
|
||||||
namespace boost { namespace fusion
|
namespace boost { namespace fusion
|
||||||
{
|
{
|
||||||
@ -36,6 +37,7 @@ namespace boost { namespace fusion
|
|||||||
static type
|
static type
|
||||||
call(Iterator const& i)
|
call(Iterator const& i)
|
||||||
{
|
{
|
||||||
|
BOOST_STATIC_ASSERT((type::position::value < 2));
|
||||||
return type(i.view);
|
return type(i.view);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user