Boost logo

Boost Users :

From: Tony Turner (acturner01_at_[hidden])
Date: 2008-07-22 12:52:40


Igor R <boost.lists <at> gmail.com> writes:

>
> > (4) finally, I templated the state<> version, , which has problems.
> >
> > [NOTE: I've referenced line # 3773 below, to sync with output]
> >
> > struct NDIREV_17 {};
> >
> > template< typename I >
> > struct Start;
> >
> > template< typename I >
> > struct Inst : public sc::state_machine< Inst<I>, Start<I> > {};[ line# 3773 ]
> >
> > template< typename I >
> > struct Start : public sc::state< Start<I>, Inst<I> > {
> > Start<I>(my_context ctx ) : my_base( ctx ) {}
> > };
> >
>
> Did you try this way:
> template<typename I> struct Inst : public sc::state_machine<Inst<I>,
> mpl::list<Start<I> > >
>
> > // same 'main'
> >
> >
> >
Thank you for the suggestion. It resulted in the following error msg:

/usr/include/boost/statechart/state_machine.hpp:701: error:
'initial_deep_construct' is not a member of
 'boost::mpl::list<MNavAnts::Instruction<MNavAnts::NDIREV_17,
 MNavAnts::Start>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
 mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
 mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>'
> >


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