我正在使用新的Boost 1.44.0 MSM庫來生成狀態機。在這個狀態機中有兩類事件class1和class2。 class1事件可以由狀態S1或S2進行處理,而class2事件只能由狀態S2進行處理。 一個特殊的class1事件upgrade_req請求從狀態S1升級到狀態S2。 ,我實現了在升壓:: MSM如下: // State S1 and S2 allow any class1 eve
由於某些原因,我不能通過構造函數 設置狀態機的參數所以我想通過元數據訪問元狀態機的公共成員函數 後端。也就是說,我想是這樣 typedef msm::back::state_machine<player_> player;
player p;
p.get_front_end(); //get the address of the front end
p.get_front_end().se