It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center




已关闭8年。




我有状态机,其中大约有60行(过渡)。由于MPL类型存在某些限制,因此不再编译。

我从Boost MSM文档中发现可以通过以下方式解决此限制



那么如何将标题添加到MPL?

最佳答案

在任何#include <mpl...>定义此之前:

#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

关于c++ - 定义具有超过50行的boost msm状态机,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10089136/

10-12 20:43