summaryrefslogtreecommitdiff
path: root/boost/fusion/container/map/detail/cpp03/as_map.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fusion/container/map/detail/cpp03/as_map.hpp')
-rw-r--r--boost/fusion/container/map/detail/cpp03/as_map.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/boost/fusion/container/map/detail/cpp03/as_map.hpp b/boost/fusion/container/map/detail/cpp03/as_map.hpp
index efa836ba08..442c350cce 100644
--- a/boost/fusion/container/map/detail/cpp03/as_map.hpp
+++ b/boost/fusion/container/map/detail/cpp03/as_map.hpp
@@ -25,7 +25,13 @@ namespace boost { namespace fusion { namespace detail
BOOST_FUSION_BARRIER_BEGIN
template <int size, bool is_assoc>
- struct as_map;
+ struct as_map
+ {
+ BOOST_STATIC_ASSERT_MSG(
+ size <= FUSION_MAX_MAP_SIZE
+ , "FUSION_MAX_MAP_SIZE limit is too low"
+ );
+ };
template <bool is_assoc>
struct as_map<0, is_assoc>