My compiler reports an error in the library code. Is this a bug in Boost.Statechart?
Probably not. There are several possible reasons for such compile-time errors: • Your compiler is too buggy to compile the library, see here for information on the status of your compiler. If you absolutely must use such a compiler for your project, I’m afraid Boost.Statechart is not for you. • The error is reported on a line similar to the following: BOOST_STATIC_ASSERT( ( mpl::less< orthogonal_position, typename context_type::no_of_orthogonal_regions >::value ) ); Most probably, there is an error in your code. The library has many such compile-time assertions to ensure that invalid state machines cannot be compiled (for an idea what kinds of errors are reported at compile time, see the compile-fail tests). Above each of these assertions there is a comment explaining the problem. On almost all current compilers an error in template code is accompanied by the current “instantiation stack”. Very much like the call stack you see in the debugger, this “instantiation stack” allows you to t
Related Questions
- How do I make the Closure Templates compiler generate JavaScript code that works nicely with the Closure Library?
- compiler can accelerate practically any ANSI C code, can it accelerate C library functions like printf()?
- My compiler reports an error in the library code. Is this a bug in Boost.Statechart?