2
0
mirror of https://github.com/boostorg/msm.git synced 2026-01-27 19:12:10 +00:00

corrected warnings from the Inspection Report tool

[SVN r62565]
This commit is contained in:
Christophe Henry
2010-06-08 13:07:20 +00:00
parent 4ed04ecee5
commit 77c81d3bb2
112 changed files with 1824 additions and 726 deletions

View File

@@ -1,3 +1,13 @@
// Copyright 2010 Christophe Henry
// henry UNDERSCORE christophe AT hotmail DOT com
// This is an extended version of the state machine available in the boost::mpl library
// Distributed under the same license as the original.
// Copyright for the original version:
// Copyright 2005 David Abrahams and Aleksey Gurtovoy. Distributed
// under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <iostream>
// back-end
#include <boost/msm/back/state_machine.hpp>
@@ -18,7 +28,7 @@ namespace
struct open_close {};
// A "complicated" event type that carries some data.
enum DiskTypeEnum
enum DiskTypeEnum
{
DISK_CD=0,
DISK_DVD=1
@@ -189,7 +199,7 @@ namespace
void test()
{
player p;
player p;
// needed to start the highest-level SM. This will call on_entry and mark the start of the SM
p.start();
// go to Open, call on_exit on Empty, then action, then on_entry on Open
@@ -200,7 +210,7 @@ namespace
cd_detected("louie, louie",DISK_DVD)); pstate(p);
p.process_event(
cd_detected("louie, louie",DISK_CD)); pstate(p);
p.process_event(play());
p.process_event(play());
// at this point, Play is active
p.process_event(pause()); pstate(p);