[MSM] eUML compilation fails with gcc and -std=c++11

Hi, I tried to compile some of the eUML MSM samples (e.g. http://www.boost.org/doc/libs/1_56_0/libs/msm/doc/HTML/examples/SimpleTimer....) using gcc 4.8 and with C+11 support enabled. However, I always get errors like the following one: error: ‘BOOST_PP_REPEAT_FROM_TO_M_1’ has not been declared I did not find anything about C++11 being not supported by Boost MSM, so I would like to know if I am doing anything wrong? Bye Manuel

Hi Manuel, Sorry for the delay, I was in vacations.
I tried to compile some of the eUML MSM samples (e.g. http://www.boost.org/doc/libs/1_56_0/libs/msm/doc/HTML/examples/SimpleTimer....) using gcc 4.8 and with C+11 support enabled.
Please do not forget to add the boost version you’re using.
However, I always get errors like the following one:
error: ‘BOOST_PP_REPEAT_FROM_TO_M_1’ has not been declared
I did not find anything about C++11 being not supported by Boost MSM, so I would like to know if I am doing anything wrong?
It’s my fault. Looks like there has been a change in boost::fusion. I got a pull request but didn’t manage to review and merge it before vacations. Sadly, it means that for version 1.56, BOOST_MSM_EUML_EVENT_WITH_ATTRIBUTES is broken. I just merged so you can either get the develop branch from github or change your version locally, it’s a simple change. Sorry for the inconvenience. HTH, Christophe

Hi Christophe,
thanks for the quick fix, it compiles now!
Bye
Manuel
2014-08-29 21:18 GMT+02:00
Hi Manuel,
Sorry for the delay, I was in vacations.
I tried to compile some of the eUML MSM samples (e.g. http://www.boost.org/doc/libs/1_56_0/libs/msm/doc/HTML/examples/SimpleTimer....)
using gcc 4.8 and with C+11 support enabled. Please do not forget to add the boost version you’re using. However, I always get errors like the following one:
error: ‘BOOST_PP_REPEAT_FROM_TO_M_1’ has not been declared
I did not find anything about C++11 being not supported by Boost MSM, so I would like to know if I am doing anything wrong? It’s my fault. Looks like there has been a change in boost::fusion. I got a pull request but didn’t manage to review and merge it before vacations. Sadly, it means that for version 1.56, BOOST_MSM_EUML_EVENT_WITH_ATTRIBUTES is broken. I just merged so you can either get the develop branch from github or change your version locally, it’s a simple change.
Sorry for the inconvenience.
HTH, Christophe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
caligano
-
christophe.j.henry@googlemail.com
-
Manuel Schiller