Boost logo

Boost Users :

From: Tony Turner (acturner01_at_[hidden])
Date: 2008-07-22 13:03:15


Juraj Ivančić <juraj.ivancic <at> gmail.com> writes:

>
> Tony Turner wrote:
>
> > template< typename I >
> > struct Start : public sc::state< Start<I>, Inst<I> > {
> > Start<I>(my_context ctx ) : my_base( ctx ) {}
> > };
>
> try this:
>
> template< typename I >
> struct Start : public sc::state< Start<I>, Inst<I> > {
> Start<I>( typename sc::state< Start<I>, Inst<I> >::my_context ctx )
> : my_base( ctx ) {}
> };
>
> HTH
>
> Juraj
>

Thank you for the reply. This change resulted in the following error msg:

    error: class 'Start' does not have any field named 'my_base'

I added the sc::state<... qualification to 'my_base' as well, and received the
following error msg:

'initial_deep_construct' is not a member of 'boost::mpl::list<Start<I>,
 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>'

Your thoughts?

Thank you again,

Tony


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