mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-23 09:07:26 +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
|
||||
|
||||
#include <boost/mpl/next.hpp>
|
||||
#include <boost/static_assert.hpp>
|
||||
|
||||
namespace boost { namespace fusion
|
||||
{
|
||||
@ -36,6 +37,7 @@ namespace boost { namespace fusion
|
||||
static type
|
||||
call(Iterator const& i)
|
||||
{
|
||||
BOOST_STATIC_ASSERT((type::position::value < 2));
|
||||
return type(i.view);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user