Andreas Huber
The following version of transition.hpp *might* fix the problem:
http://boost.cvs.sourceforge.net/*checkout*/boost/boost/boost/statechart/tra... ion.hpp?revision=1.15
I coudn't verify this on GCC4.1 but at least it compiles on MSVC7.1 and GCC3.4. Could you please replace your local version of transition.hpp with the above one and report back whether that fixes your problem?
The previous problem ( http://usalug.org/pastebin/pastebin.php?show=392 ) is
solved with gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3), but with gcc32 (GCC)
3.2.3 20030502 (Red Hat Linux 3.2.3-55.fc5) the following problem arise:
g++32 -g -I /boost_1_33_1/ -std=c++98 -pedantic main.cpp -o car_assembler
In file included from main.cpp:17:
/boost_1_33_1/boost/statechart/transition.hpp:48: no class template named `
no_context' in `boost::statechart::detail'
main.cpp:38: object `<expression error>' cannot be used as template argument
main.cpp:38: warning: ISO C++ forbids declaration of `reactions' with no type
make: *** [debug32] Error 1
There is another problem. The full code can be found here:
http://usalug.org/pastebin/pastebin.php?show=411
If you define some post_event, the following error occures with gcc (GCC)
4.1.0 20060304 (Red Hat 4.1.0-3):
g++ -g -I /boost_1_33_1/ -std=c++98 -pedantic main.cpp -o car_assembler
main.cpp: In constructor 'default_state<T>::default_state(typename
boost::statechart::state