|
Boost Users : |
From: Andreas Huber (ahd6974-spamgroupstrap_at_[hidden])
Date: 2006-02-27 14:48:27
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.
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