Boost logo

Boost Users :

Subject: [Boost-users] statechart] [gcc-4.7.2] a template state inherited from statechart::state results in compiler error
From: Nikiforov Anatoly (Anatoly.Nikiforov_at_[hidden])
Date: 2013-01-14 14:44:50


Hi,
I'm using Boost.Statechart and have come across a strange gcc-4.7.2 behavior on the attached sample code. The error is:

cpp-lab/boost/statechart/main.cpp:89:23: error: expected ')' before 'ctx'

If outermost_context() isn't used in Inner3() constructor and statechart::simple_state is used instead of statechart::state everything is OK.
If Inner3 is not a template then everything is OK

The problem occurs only if a state template class is inherited from statechart::state.

Is there any workaround for the issue?

Thanks in advance.




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