Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
約60行(遷移)のステートマシンがあります。MPLタイプにいくつかの制限があるため、コンパイルは終了します。
Boost MSMのドキュメントから、この制限は次の方法で解決できることがわかりました。
今のところ、より多くを達成するための唯一の解決策は、MPLにヘッダーを追加することです(幸いなことに、これはそれほど複雑ではありません)。
では、MPLにヘッダーを追加するにはどうすればよいでしょうか。
#include <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