Opened 9 years ago

Closed 9 years ago

#8682 closed Bugs (fixed)

Doc: Wrong Use of func_state<> template

Reported by: Norbert Riedlin <norbert.riedlin@…> Owned by: Christophe Henry
Milestone: Boost 1.55.0 Component: msm
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc: axel.sauerhoefer@…

Description

In the example of the section

Defining states with entry/exit actions

on http://www.boost.org/doc/libs/1_53_0/libs/msm/doc/HTML/ch03s03.html the template parameters for func_state<> are wrong. I guess it should be:

struct Empty : public msm::front::euml::func_state<Empty,Empty_Entry,Empty_Exit>{};

(I added the first template parameter Empty)

Change History (1)

comment:1 by Christophe Henry, 9 years ago

Milestone: To Be DeterminedBoost 1.55.0
Resolution: fixed
Status: newclosed

Correct. Should be: struct Empty_tag {}; typedef msm::front::euml::func_state<Empty_tag,Empty_Entry,Empty_Exit> Empty;

Note: See TracTickets for help on using tickets.