Re: [Boost-users] [msm] [mpl] wrong number of template arguments (21, should be 20)

223 views
Skip to first unread message

Kamel Zaarouri, Mr

unread,
Jan 16, 2014, 9:52:42 AM1/16/14
to boost...@lists.boost.org
Hi,

I added a new transition to my statemachine that is built around boost::msm and I got this error when compiling.

error: wrong number of template arguments (21, should be 20)
/boost/mpl/aux_/sequence_wrapper.hpp:154: 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 went to add in the beginning of the header file before any boost includes:

#define BOOST_MPL_LIMIT_LIST_SIZE 30

But that didn't fix it.

I also tried adding in the makefile.am

AM_CFLAGS = \
        -DBOOST_MPL_LIMIT_LIST_SIZE=30 \

But that didn't fix it either.

And then I hacked boost/mpl/limits/list.hpp and I changed the default value of BOOST_MPL_LIMIT_LIST_SIZE  from 20 to 30 and I still have this error.


Any idea?

Thanks,
Kamel


Christophe Henry

unread,
Jan 16, 2014, 3:36:04 PM1/16/14
to boost...@lists.boost.org
>Hi,
>
>I added a new transition to my statemachine that is built around boost::msm and I got this error when compiling.
>
>error: wrong number of template arguments (21, should be 20)
>/boost/mpl/aux_/sequence_wrapper.hpp:154: 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 went to add in the beginning of the header file before any boost includes:
>
>#define BOOST_MPL_LIMIT_LIST_SIZE 30
 
Hi,
 
 
#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
#define BOOST_MPL_LIMIT_VECTOR_SIZE 30 // or whatever you need              
#define BOOST_MPL_LIMIT_MAP_SIZE 30 // or whatever you need
 
And of course you need to include vector30.hpp
 
HTH,
Christophe

Christophe Henry

unread,
Jan 16, 2014, 3:39:51 PM1/16/14
to boost...@lists.boost.org
> And of course you need to include vector30.hpp
I meant:
 
#include "boost/mpl/vector/vector30.hpp"

Kamel Zaarouri, Mr

unread,
Jan 17, 2014, 7:54:52 AM1/17/14
to <boost-users@lists.boost.org>
Ah Christophe, great and accurate help as always, 
It worked thank you!
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply all
Reply to author
Forward
0 new messages