summaryrefslogtreecommitdiff
path: root/boost/fusion/container/map/detail/cpp03/as_map.hpp
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:12:59 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:12:59 +0900
commitb8cf34c691623e4ec329053cbbf68522a855882d (patch)
tree34da08632a99677f6b79ecb65e5b655a5b69a67f /boost/fusion/container/map/detail/cpp03/as_map.hpp
parent3fdc3e5ee96dca5b11d1694975a65200787eab86 (diff)
downloadboost-b8cf34c691623e4ec329053cbbf68522a855882d.tar.gz
boost-b8cf34c691623e4ec329053cbbf68522a855882d.tar.bz2
boost-b8cf34c691623e4ec329053cbbf68522a855882d.zip
Imported Upstream version 1.67.0upstream/1.67.0
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>