2
0
mirror of https://github.com/boostorg/msm.git synced 2026-01-25 06:22: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>
@@ -25,7 +35,7 @@ namespace
struct open_close {};
// A "complicated" event type that carries some data.
enum DiskTypeEnum
enum DiskTypeEnum
{
DISK_CD=0,
DISK_DVD=1
@@ -282,7 +292,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