Boost logo

Boost Users :

Subject: Re: [Boost-users] [state-chart] Problem compiling a statemachine with "class" instead of "struct"
From: Igor R (boost.lists_at_[hidden])
Date: 2009-02-12 05:25:41


>
> and use it in our code, everything compiles fine. As soon as we
> change the declaration to
>
> class Active : public boost::statechart::simple_state< Active,
> PRX5StateMachine >
>
> we get massive compiler errors, which look like this:

In "struct" its memebers have "public" access by default. In you define a
"class", ensure that all the symbols needed by the framework are accessible
(eg., that "reactions" typedef is public)



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net