1 .. Macros/Configuration//BOOST_MPL_LIMIT_LIST_SIZE |40
3 BOOST_MPL_LIMIT_LIST_SIZE
4 =========================
11 #if !defined(BOOST_MPL_LIMIT_LIST_SIZE)
12 # define BOOST_MPL_LIMIT_LIST_SIZE \\
21 ``BOOST_MPL_LIMIT_LIST_SIZE`` is an overridable configuration macro regulating
22 the maximum arity of the ``list``\ 's and ``list_c``\ 's |variadic forms|. In this
23 implementation of the library, ``BOOST_MPL_LIMIT_LIST_SIZE`` has a default value
24 of 20. To override the default limit, define ``BOOST_MPL_LIMIT_LIST_SIZE`` to
25 the desired maximum arity rounded up to the nearest multiple of ten before
26 including any library header. |preprocessed headers disclaimer|
34 #define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
35 #define BOOST_MPL_LIMIT_LIST_SIZE 10
36 ``#``\ include <boost/mpl/list.hpp>
38 using namespace boost::mpl;
40 typedef list_c<int,1> l_1;
41 typedef list_c<int,1,2,3,4,5,6,7,8,9,10> l_10;
42 // typedef list_c<int,1,2,3,4,5,6,7,8,9,10,11> l_11; // error!
48 |Configuration|, |BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS|, |BOOST_MPL_LIMIT_VECTOR_SIZE|
51 .. copyright:: Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams
52 Distributed under the Boost Software License, Version 1.0. (See accompanying
53 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)