Add limits precheck

This commit is contained in:
Nikita Kniazev committed 2018-02-20 22:44:34 +03:00
1 parent 0a8f0f49b2
commit 38818fbe3d
4 files changed
+28 -4

No files matched your search

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