Hi,
unfortunately, fusion uses a different default than mpl.
You need:
#define FUSION_MAX_VECTOR_SIZE 20
See: http://www.boost.org/doc/libs/1_55_0/libs/msm/doc/HTML/ch05.html
HTH,
Christophe
From: Raj Sambasivan
Sent: Friday, July 04, 2014 12:02 AM
Newsgroups: gmane.comp.lib.boost.user
To: boost-users@lists.boost.org
Subject: [msm] more than 10 states causes long compilationerror
Hi,
I get a long compilation error when i include the last line,
i tried including
#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
but still have the same problem, compilation error is at the bottom.
any help?
struct transition_table: boost::mpl::vector<
Row
{
};
compilation error (truncated)
g++ -I/boost_1_55_0/ -c -Wall test.cpp
In file included from test.cpp:1:
In file included from ./Order.H:11:
In file included from /boost_1_55_0/boost/msm/back/state_machine.hpp:28:
In file included from /boost_1_55_0/boost/fusion/include/as_set.hpp:10:
/boost_1_55_0/boost/fusion/container/set/convert.hpp:24:30: error: implicit
instantiation of undefined template 'boost::fusion::detail::as_set<11>'
typedef typename gen::
^
/boost_1_55_0/boost/msm/back/state_machine.hpp:1164:50: note: in instantiation
of template class
'boost::fusion::result_of::as_set