Boost logo

Boost :

From: Andreas Huber (ahd6974-spamgroupstrap_at_[hidden])
Date: 2006-03-10 10:34:31


Hi Oliver

> I get another error if I use templated states (gcc-3.4.6).
> 'simple_state.hpp:403: error: no type named inner_context_type in struct
> proto<int>'
> Instantiation of state_machine:: initiate() causes the error.

A brief look at your code suggests that you have run into the same problem
like Dave Greene:

http://article.gmane.org/gmane.comp.lib.boost.user/17091

You need wrap all inner initial states that are template instantiations into
an mpl::list<> ...

template< typename S >
struct proto
: public sc::simple_state<
        proto< S >,
        sm< S >,
        mpl::list< inactive< S > > // *** here ***
>
{};

... and everything should work as expected.

Follow the link above for details.

HTH,

-- 
Andreas Huber
When replying by private email, please remove the words spam and trap
from the address shown in the header.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk