|
Boost Users : |
Subject: Re: [Boost-users] Fusion error: wrong number of template arguments (30, should be 20)
From: Joost Kraaijeveld (J.Kraaijeveld_at_[hidden])
Date: 2012-08-07 05:19:04
On Tue, 2012-08-07 at 11:01 +0200, Viatcheslav.Sysoltsev_at_[hidden]
wrote:
> > /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
> >
> 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.
Thanks, I will try that.
But it is strange, because I really use 1.49 (and no 1.50) and I do not
use deque anywhere in my own code: I only use vector and map.
Also, if a deque is used somehow in the implementation of a vector (for
which the error is generated afaics from the error), I would think that
configuring the vector size as I have done, should take care of
configuring the implementation deque.
-- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl
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