Hi Dave
The attached testcase doesn't compile with g++ 4.0.2 or g++ 3.2.3. The compiler generates a series of error messages like this:
boost/statechart/simple_state.hpp:189: error: no type named 'inner_context_type' in 'struct Test::NormalMode<int>'
MSVC7.1 gives a similar diagnostic.
I hastily sketched this out based on a larger code. If there are typos or other mistakes, let me know but the main problem I'm trying to solve is the "no type named" problem. I typedef it right in the template definition for NormalMode!
Strange indeed. As you might have noticed, I'm using templated states and machines quite extensively in examples & tests. This should work in principle. I'll look into it.
This is using the current CVS for statechart, 1.33.1 for mpl.
Is it possibly a compiler bug?
I don't think so, see above. Later, -- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.