summaryrefslogtreecommitdiff
path: root/boost/fusion/container/deque/detail/cpp03/as_deque.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fusion/container/deque/detail/cpp03/as_deque.hpp')
-rw-r--r--boost/fusion/container/deque/detail/cpp03/as_deque.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/boost/fusion/container/deque/detail/cpp03/as_deque.hpp b/boost/fusion/container/deque/detail/cpp03/as_deque.hpp
index e95daf3a19..860a2a2936 100644
--- a/boost/fusion/container/deque/detail/cpp03/as_deque.hpp
+++ b/boost/fusion/container/deque/detail/cpp03/as_deque.hpp
@@ -26,7 +26,13 @@ namespace boost { namespace fusion { namespace detail
BOOST_FUSION_BARRIER_BEGIN
template <int size>
- struct as_deque;
+ struct as_deque
+ {
+ BOOST_STATIC_ASSERT_MSG(
+ size <= FUSION_MAX_DEQUE_SIZE
+ , "FUSION_MAX_DEQUE_SIZE limit is too low"
+ );
+ };
template <>
struct as_deque<0>