Finite State Machine example

Hello, I am looking at http://www.boost.org/libs/mpl/doc/paper/html/example.html I have a dumb question or perhaps I am missing something (or both). Where is the state_machine class template that the player derives from using the curiously recurring template pattern? class player : state_machine<player> // where is the code for this class? { Regards, Bruce

Hello,
Hi Bruce,
I am looking at http://www.boost.org/libs/mpl/doc/paper/html/example.html
I have a dumb question or perhaps I am missing something (or both).
Where is the state_machine class template that the player derives from using the curiously recurring template pattern?
class player : state_machine<player> // where is the code for this class? {
The code for the paper's sample is located in the MPL's example directory - "boost/libs/mpl/example/fsm" (http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/boost/boost/libs/mpl/example /fsm/, if you want to browse it online). HTH, Aleksey
participants (2)
-
Aleksey Gurtovoy
-
b_trask