Boost logo

Boost Users :

Subject: Re: [Boost-users] Fusion error: wrong number of template arguments (30, should be 20)
From: Viatcheslav.Sysoltsev_at_[hidden]
Date: 2012-08-07 05:01:11


On Tue, 07 Aug 2012 10:38:40 +0200, Joost Kraaijeveld
<J.Kraaijeveld_at_[hidden]> wrote:

> Hi,
>
> I have the following error after an upgrade to Boost 1.49 (Debian
> Wheezy):
>
> /usr/include/boost/fusion/container/deque/detail/preprocessed/deque_initial_size30.hpp:14:196:
> error: wrong number of template arguments (30, should be 20)
> In file included from
> /usr/include/boost/mpl/aux_/include_preprocessed.hpp:37:0,
> from /usr/include/boost/mpl/vector.hpp:46,
> from
> /usr/include/boost/fusion/container/deque/detail/deque_initial_size.hpp:16,
> from
> /usr/include/boost/fusion/container/deque/deque.hpp:15,
> from /usr/include/boost/fusion/container/deque.hpp:11,
> from /usr/include/boost/fusion/container.hpp:14,
> from
> ../../../library/../include/Danu/DanuModelObjects/Login.hpp:12,
> from ../../../library/DanuModelObjects/Login.cpp:7:
> /usr/include/boost/mpl/aux_/preprocessed/gcc/vector.hpp:22:8: error:
> provided for 'template<class T0, class T1, class T2, class T3, class T4,
> class T5, class T6, class T7, class T8, class T9, class T10, class T11,
> class T12, class T13, class T14, class T15, class T16, class T17, class
> T18, class T19> struct boost::mpl::vector'
>
> I have defined the following:
>
> #define FUSION_MAX_VECTOR_SIZE 30
> #define FUSION_MAX_MAP_SIZE 30
>
> How can I solve this problem?
>
> TIA
>
>

I do not see deque in boost fusion 1.49.0 documentation, it is first
mentioned in 1.50.0.
Nevertheless from 1.50 doc declaring FUSION_MAX_DEQUE_SIZE may help.

-- Slava


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net