Add limits precheck

This commit is contained in:
Nikita Kniazev
2018-02-20 18:32:22 +03:00
parent 0a8f0f49b2
commit 38818fbe3d
4 changed files with 28 additions and 4 deletions

View File

@@ -25,7 +25,13 @@ namespace boost { namespace fusion { namespace detail
BOOST_FUSION_BARRIER_BEGIN
template <int size>
struct as_set;
struct as_set
{
BOOST_STATIC_ASSERT_MSG(
size <= FUSION_MAX_SET_SIZE
, "FUSION_MAX_SET_SIZE limit is too low"
);
};
template <>
struct as_set<0>