C++11 state machine start