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

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

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, see http://svn.boost.org/svn/boost/trunk/libs/msm/doc/HTML/ch05.html #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

Ah Christophe, great and accurate help as always, It worked thank you! On Jan 16, 2014, at 3:40 PM, "Christophe Henry" <christophe.j.henry@googlemail.com<mailto:christophe.j.henry@googlemail.com>> wrote:
And of course you need to include vector30.hpp I meant:
#include "boost/mpl/vector/vector30.hpp" _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org<mailto:Boost-users@lists.boost.org> http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Christophe Henry
-
Kamel Zaarouri, Mr