Implementing a state machine in less than 100 lines of C++11 | Heykuki News