[statechart] - templated asynchronous_state_machine compilation problem

Hello, I've a problem to compile (gcc- 4.1.2) a templated asynchronous state machine. error: expected `)' before 'ctx' template< typename streamT > struct proto; template< typename streamT > class presentation : public sc::asynchronous_state_machine< presentation< streamT >, proto< streamT >, sc::fifo_scheduler<>
{ public: typedef streamT stream_type; presentation( my_context ctx) : my_base( ctx) // error: expected `)' before 'ctx' {} }; Thanks, Oliver

Hi Oliver Oliver.Kowalke@qimonda.com wrote:
Hello, I've a problem to compile (gcc- 4.1.2) a templated asynchronous state machine.
error: expected `)' before 'ctx'
MSVC 7.1 produces an almost identical diagnostic. This is a well-known
C++ "problem". As soon as the deriving class is a template you need to
fully qualify base class typedefs. The following works on MSVC7.1:
#include
participants (2)
-
Andreas Huber
-
Oliver.Kowalke@qimonda.com